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.
I have found out that almost all action providers of the java refactoring module remember javac (CompilationInfo) and access it outside the JavaSource.runUserActionTask. It violates JavaSource contract and it has negative performance consequences. In order to do not clash with other tasks it has to run always new instance of javac that brings bigger memory footprint and CPU usage as it parses same sources again and again. Even worse the javac is sometimes hold just as a weak reference that may result to NPEs (issue 138243). The goal of this task is to get rid of such javac usages.
implemented as http://hg.netbeans.org/main/rev/7dc951d9b531
Integrated into 'main-golden', available in NB_Trunk_Production #286 build Changeset: http://hg.netbeans.org/main/rev/7dc951d9b531 User: Jan Pokorsky <jpokorsky@netbeans.org> Log: #138404: java refactoring have to access javac solely inside user action tasks
*** Issue 129542 has been marked as a duplicate of this issue. ***