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

Documentation of java.util.Observable

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: