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.
ElementHeaders.getHeader starts the java lexer in VeryPretty.visitLiteral to return proper headers in case the Document has not been loaded yet. It is the case of the Find Usages action that needs to collect headers of class members found throughout several projects. Running lexer just to compute a member name has a significant performance impact. For now I have a workaround for the Find Usages but it is desirable to fix it also here IMO. See issue 171652 for more details including a profiler snapshot.
Fixed in jet-main. http://hg.netbeans.org/jet-main/rev/821f76c971d5
Integrated into 'main-golden', will be available in build *200909220201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/821f76c971d5 User: Dusan Balek <dbalek@netbeans.org> Log: Issue #171692: ElementHeaders.getHeader runs java lexer - fixed.