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

VetoableChangeSupport.fireVetoableChange contradicts the Java SE 6 spec

    XMLWordPrintable

Details

    • b03
    • generic
    • generic

    Description

      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.
      ===

      The fireVetoableChange no longer fires a new event to all listeners, if a listener vetos the change under OpenJDK 6 b01. This contradicts the current Java SE 6 API spec.

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

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: