Bug 188604 - WeakListeners.propertyChange should support property name variant
WeakListeners.propertyChange should support property name variant
Status: NEW
Product: platform
Classification: Unclassified
Component: -- Other --
7.0
All All
: P3 (vote)
: TBD
Assigned To: issues@platform
issues@platform
: API
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-12 20:19 UTC by Jesse Glick
Modified: 2010-07-12 20:19 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2010-07-12 20:19:28 UTC
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.


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo