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

Documentation of java.util.Observable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 7
    • core-libs

      A DESCRIPTION OF THE REQUEST :
      The documentation of java.util.Observable doesn't say if it's safe for multiple threads to call its public methods (e.g., notifyObservers) on a shared instance.

      JUSTIFICATION :
      It complicates programming to have to synchronize calls to notifyObservers, especially when the callback does not require any explicit synchronization.

            smarks Stuart Marks
            coffeys Sean Coffey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: