Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4168559

UndoableEditSupport doesn't support modifying listeners vector during notifi.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.2.0
    • client-libs
    • None
    • beta
    • generic
    • generic

      UndoableEditSupport doesn't support modifying listeners vector during notification.

      If I'm an UndoableEditListener and get notified by UndoableEditSupport I cannot remove myself as a listener in my undoableEditHappened method because UndoableEditSupport doesn't clone the listeners collection, instead enumerates on it directly.

      Look in java.beans.PropertyChangeSupport for correct implementation

            svioletsunw Scott Violet (Inactive)
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: