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

RFE: DOC: Are PropertyChangeSupport & VetoableChangeSupport Thread-Safe? --Docs Should Say

XMLWordPrintable

    • b38
    • x86
    • linux
    • Not verified

      Name: rmT116609 Date: 04/05/2004


      A DESCRIPTION OF THE PROBLEM :
      Both java.beans.PropertyChangeSupport and java.beans.VetoableChangeSupport seem to have thread-safe implementations (though I truthfully am not 100% sure of that). However, the documentation does not indicate either their thread-safety or lack thereof. In keeping with the current documentation standards, this point should be indicated in the class documentation. This will allow implementors to benefit from any thread-safety of the synchronization in the class implementations and allow proper multi-threaded implementation of these two classes.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      An indication of the classes thread-safety.
      ACTUAL -
      No indication.

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.4.2/docs/api/java/beans/PropertyChangeSupport.html
      (Incident Review ID: 246315)
      ======================================================================

            malenkov Sergey Malenkov (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: