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.
If you add a property change listener using WeakListeners.propertyChange, you cannot use addPropertyChangeListener(String,PropertyChangeListener) since WeakListenerImpl.PropertyChange will call removePropertyChangeListener(PropertyChangeListener) and PropertyChangeSupport will not find the listener. There should be a variant method WeakListeners.propertyChange(PropertyChangeListener,Object,String) which lets you specify the property name you are adding the listener under.
I'm missing this as well.
Created attachment 149913 [details] The proposed API change, test included.
Please review the proposed API change.
Seems OK.
Thanks for the review, I'm going to push the change tomorrow.
The change was adapted to reflect the changes introduced by the merge of server_split branch and pushed: http://hg.netbeans.org/core-main/rev/244307f75984
Integrated into 'main-silver', will be available in build *201410290913* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-silver/rev/244307f75984 User: mentlicher@netbeans.org Log: #188604: Weak property and vetoable listeners for a specific property name.