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.
This code: package bug class GroovyClass1 { def method1() {} def method2() {} def method3() {} def gonzo1() {} def gonzo2() {} def gonzo3() {} } class GroovyClass2 { def m2() { GroovyClass1 localClass = new GroovyClass1() localClass. new String().subst } } class GroovyClass3 { def m3() { println "Hi" } } Seems to break the sanatizer. The problem is the trailing dot in this line: localClass. If you keep on adding and removing this dot you'll see. If it doesn't happen instantly add or remove a blank line to trigger a recompile. A broken compilation unit leads to this: AstUtilities.getRoot(request.info) == null
I really cannot reproduce this. Failing test would be great to have.
Ok, I just found way to reproduce it. After pasting and saving, navigator is gone. Inserting removing some letters on next line after '.' makes navigator/samantic highlight appear.
Fixed. http://hg.netbeans.org/main/rev/31a6cf6ef5da
Integrated into 'main-golden', available in build *200808300201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/31a6cf6ef5da User: Martin Adamek <martin_adamek@netbeans.org> Log: #144263: Trailing dot breaks sanitizer()
v.