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.
Each invocation of JavaEditor.refreshAnnotations() seems to generate new instances of o.n.api.java.classpath.ClassPath which are hanging around kept in memory via its SPIListener. See the attached screenshot of OptimizeIt window. At the bottom of the screenshot you can see the stack trace where ClassPath instance is created. The center of the screenshot shows the reference graph.
Created attachment 17789 [details] OptimizeIt screenshot
*** Issue 49244 has been marked as a duplicate of this issue. ***
ClassPath instances can also be kept via SPIListener registered to RefactoringClassPathImplementation (not only to ProjectClassPathImplementation as shown in the attachment here). See the issue 49244.
*** Issue 49258 has been marked as a duplicate of this issue. ***
Checking in api/src/org/netbeans/modules/java/classpath/ProxyClassPathImplementation.java; /cvs/java/api/src/org/netbeans/modules/java/classpath/ProxyClassPathImplementation.java,v <-- ProxyClassPathImplementation.java new revision: 1.4; previous revision: 1.3 done
Partially fixed. The case with refreshAnnotations() is fixed now. But the case with RefactoringClassPathImplementation as covered by issue 49258 still exists.
RefactoringClassPath fixed. Checking in src/org/netbeans/modules/refactoring/NbAbstractRefactoring.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/NbAbstractRefactoring.java,v <-- NbAbstractRefactoring.java new revision: 1.10; previous revision: 1.9 done Checking in src/org/netbeans/modules/refactoring/RefactoringSupportImpl.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/RefactoringSupportImpl.java,v <-- RefactoringSupportImpl.java new revision: 1.5; previous revision: 1.4 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/refactoring/classpath/RefactoringClassPathImplementation.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/classpath/RefactoringClassPathImplementation.java,v <-- RefactoringClassPathImplementation.java new revision: 1.8; previous revision: 1.7 done Processing log script arguments... More commits to come... Checking in src/org/netbeans/modules/refactoring/ui/RenameAction.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/ui/RenameAction.java,v <-- RenameAction.java new revision: 1.19; previous revision: 1.18 done Processing log script arguments... More commits to come... Checking in test/qa-functional/src/org/netbeans/test/refactoring/Utility.java; /cvs/refactoring/test/qa-functional/src/org/netbeans/test/refactoring/Utility.java,v <-- Utility.java new revision: 1.11; previous revision: 1.10 done
Verified w/ build 20041014-1501. Thanks!