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

The spec on VetoableChangeSupport.fireVetoableChange should be updated

XMLWordPrintable

    • b38
    • generic
    • generic
    • Not verified

      The spec on the method java.beans.VetoableChangeSupport.fireVetoableChange states:
      ===
      public void fireVetoableChange(String propertyName,
                                     Object oldValue,
                                     Object newValue)
                              throws PropertyVetoException

      Report a vetoable property update to any registered listeners. If anyone vetos the change, then fire a new event reverting everyone to the old value and then rethrow the PropertyVetoException.
      ===

      But the fireVetoableChange no longer fires a new event to all listeners, if a listener vetos the change. The spec should accommodate the behavior change.

      Note: VetoableChangeSupport contains 4 overloaded methods fireVetoableChangeXXX with similar behavior.

      This spec issue is probably caused by the fix for 5004188 "Refactor listener management in [Property|Vetoable]ChangeSupport.java"

            malenkov Sergey Malenkov (Inactive)
            agavrilosunw Alexey Gavrilov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: