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.
One WeakListener created in ClassChildren (see the attached stacktrace) is used multiple times - also for listening on sub-elements of the class (fields, methods, constructors). I guess it happens in ClassChildren.hookNodeName(). When the referenced listener is freed, the WeakListener removes itself automatically only from ClassElement it was originally created for, but not from all the sub-elements. So e.g. with each opening of a java file (see issue 27563), one more WeakListener is leaked plus bunch of LinkedList.Entry (used to store listeners in ElementImpl).
Created attachment 7776 [details] WeakListener creation stack trace
Forgot to mention: this is in trunk, build 200210240100. Don't know how this will change in projects, but this is rather subtle problem that can generally happen on many places.
/cvs/java/srcmodel/src/org/openide/src/nodes/ClassChildren.java,v <-- ClassChildren.java new revision: 1.3; previous revision: 1.2
Reporter, could you verify this bug? Thanks
VERIFIED
Reorganization of java component