This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
If one creates such a mini class: class Bar { } the AstPath created for it reads ModuelNode, but it should be ModuleNode:ClassNode See disabled testcase: testTypeCompletion1() in groovy.editor/test/unit/src/org/netbeans/modules/groovy/editor/completion/TypesCompletionTest.java in some cases even AstUtilities.getRoot(request.info) fails.
I am not able to reproduce this somehow, but I created AstPathTest in http://hg.netbeans.org/main/rev/5341a349c47b so if you will provide failing test case, I will fix it.
Integrated into 'main-golden', available in NB_Trunk_Production #309 build Changeset: http://hg.netbeans.org/main/rev/5341a349c47b User: Martin Adamek <martin_adamek@netbeans.org> Log: Test support for #139371: AstPath fails for mini-class: class Bar { }
My original description was wrong. You have to have something uncomplete in the body of that mini-class like: class Bar { Cl } I've added a testcase to expose this: http://hg.netbeans.org/main/rev/ac21609024e6
Integrated into 'main-golden', available in NB_Trunk_Production #310 build Changeset: http://hg.netbeans.org/main/rev/ac21609024e6 User: Matthias Schmidt <schmidtm@netbeans.org> Log: Adding testcases for #139371: AstPath fails for mini-class: class Bar { }
I know this is breaking some completion stuff, but in real world those mini-classes are not really used, so I am downgrading to P3.