-
Bug
-
Resolution: Fixed
-
P4
-
1.2.0
-
ladybird
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2024405 | 1.4.0 | Mark Davidson | P4 | Resolved | Fixed | beta |
Name: dbT83986 Date: 12/31/98
1) Add more than one PropertyChangeListener to any
subclass of JComponent that uses
SwingPropertyChangeSupport (using
addPropertyChangeListener())
2) In the propertyChange() method of the class that
implements PropertyChangeListener, remove a
a listener from the JComponent (using
removePropertyChangeListener())
==> Concurrent modification problem -- if a listener
is removed whilst the listeners are being sent messages,
then some listeners will be skipped: the implementation
of SwingPropertyChangeSupport does not synchronize its
vector of listeners (according to the comment, this is
because Swing is single-threaded). Concurrent modification
can occur even in a single-threaded environment!
This bug is a show-stopper for our application!
(and I can find no workaround)
(Review ID: 42013)
======================================================================
- backported by
-
JDK-2024405 SwingPropertyChangeSupport broken!
-
- Resolved
-