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.
CallbackSystemAction's innerclass DelegateAction attaches weak PropertyChangeListener to the associated action. When the DelegateAction is disposed the weak listener is kept attached. I am adding finalizer to the DelegateAction which detaches the weak listener. The fix is verified by the introduced test, added to CallbackSystemActionTest class. If I run the test on the original CallbackSystemAction without the finalizer, the listener is verified kept attached. With the fix the test verifies that the listener goes away.
Checking in test/unit/src/org/openide/util/actions/CallbackSystemActionTest.java; /cvs/openide/test/unit/src/org/openide/util/actions/CallbackSystemActionTest.java,v <-- CallbackSystemActionTest.java new revision: 1.13; previous revision: 1.12 done Checking in src/org/openide/util/actions/CallbackSystemAction.java; /cvs/openide/src/org/openide/util/actions/CallbackSystemAction.java,v <-- CallbackSystemAction.java new revision: 1.40; previous revision: 1.39 done
Verified.