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.
[dev build 200210240100] PatternChildren creates two WeakListener objects (with new PatternChildren instance, lines 41 and 42) but does not specify their event source (sets null) - so the WeakListeners cannot be automatically removed (when PatternChildren.Listener is freed). This causes two more WeakListeners added permanently each time a file is opened (see issue 27563). Allocation stack trace attached.
Created attachment 7773 [details] allocation stacktrace of the listeners
One more thing: the weak listeners are also used multiple times, i.e. one WeakListener instance is added to multiple objects - as can be seen in reassignMethodListener() and reassignFieldListener() of PatternChildren. This is probably the root cause - when used multiple times, WeakListener cannot be automatically removed because there's not just one source to be removed from (as the aut-remove mechanism expects).
/cvs/beans/src/org/netbeans/modules/beans/PatternChildren.java,v <-- PatternChildren.java new revision: 1.25; previous revision: 1.24
Reporter, could you verify this bug? Thanks
Tomas didn't response. I suppose he's satisfied.