Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b117

      Description

      The classes java.util.Observer and java.util.Observable should be deprecated. Applications should no longer use them.

      They don't provide a rich enough event model for applications. For example, they support only the notion that something has changed, but they don't convey any information about what has changed. There are also some thread-safety and sequencing issues that cannot be fixed compatibly.

      The evaluation of JDK-4180466, dating back to 1998 and 1999, states in part,

          [Observable] is no longer under active development. It is largely unused in
          the JDK, and has, for the most part, been superseded by the 1.1 Beans/AWT
          event model.

          Observable has fallen into disuse and is no longer under active development.

      Application developers should consider using java.beans for a richer change notification model. Or they should consider constructs in java.util.concurrent such as queues or semaphores to pass messages among threads, with reliable ordering and synchronization properties.

        Issue Links

          Activity

          smarks Stuart Marks created issue -
          smarks Stuart Marks made changes -
          Field Original Value New Value
          Fix Version/s 9 [ 14949 ]
          smarks Stuart Marks made changes -
          Status New [ 10000 ] Open [ 1 ]
          smarks Stuart Marks made changes -
          Link This issue relates to JDK-4180466 [ JDK-4180466 ]
          smarks Stuart Marks made changes -
          Description The classes java.util.Observer and java.util.Observable should be deprecated. Applications should no longer use them.

          They don't provide a rich enough event model for applications. For example, they support only the notion that something has changed, but they don't convey any information about what has changed. There are also some thread-safety and sequencing issues that cannot be fixed compatibly.

          The evaluation of JDK-4180466, dating back to 1998 and 1999, states in part,

              [Observable] is no longer under active development. It is largely unused in
              the JDK, and has, for the most part, been superseded by the 1.1 Beans/AWT
              event model.

              Observable has fallen into disuse and is no longer under active development.

          smarks Stuart Marks made changes -
          Link This issue relates to JDK-4212311 [ JDK-4212311 ]
          smarks Stuart Marks made changes -
          Description The classes java.util.Observer and java.util.Observable should be deprecated. Applications should no longer use them.

          They don't provide a rich enough event model for applications. For example, they support only the notion that something has changed, but they don't convey any information about what has changed. There are also some thread-safety and sequencing issues that cannot be fixed compatibly.

          The evaluation of JDK-4180466, dating back to 1998 and 1999, states in part,

              [Observable] is no longer under active development. It is largely unused in
              the JDK, and has, for the most part, been superseded by the 1.1 Beans/AWT
              event model.

              Observable has fallen into disuse and is no longer under active development.

          The classes java.util.Observer and java.util.Observable should be deprecated. Applications should no longer use them.

          They don't provide a rich enough event model for applications. For example, they support only the notion that something has changed, but they don't convey any information about what has changed. There are also some thread-safety and sequencing issues that cannot be fixed compatibly.

          The evaluation of JDK-4180466, dating back to 1998 and 1999, states in part,

              [Observable] is no longer under active development. It is largely unused in
              the JDK, and has, for the most part, been superseded by the 1.1 Beans/AWT
              event model.

              Observable has fallen into disuse and is no longer under active development.

          Application developers should consider using java.beans for a richer change notification model. Or they should consider constructs in java.util.concurrent such as queues or semaphores to pass messages among threads, with reliable ordering and synchronization properties.
          smarks Stuart Marks made changes -
          Link This issue relates to JDK-4687908 [ JDK-4687908 ]
          smarks Stuart Marks made changes -
          Link This issue relates to JDK-8025077 [ JDK-8025077 ]
          smarks Stuart Marks made changes -
          Link This issue relates to JDK-8155052 [ JDK-8155052 ]
          smarks Stuart Marks made changes -
          Labels noreg-jck
          hgupdate HG Updates made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolved In Build team [ 17324 ]
          Resolution Fixed [ 1 ]
          hgupdate HG Updates made changes -
          Resolved In Build team [ 17324 ] master [ 18256 ]
          hgupdate HG Updates made changes -
          Resolved In Build master [ 18256 ] b117 [ 17759 ]
          smarks Stuart Marks made changes -
          Link This issue relates to JDK-8157055 [ JDK-8157055 ]
          iris Iris Clark made changes -
          Labels noreg-jck jsr379-annex2-na noreg-jck
          iris Iris Clark made changes -
          Labels jsr379-annex2-na noreg-jck jsr379-annex1 noreg-jck
          darcy Joe Darcy made changes -
          Link This issue csr of CCC-8154801 [ CCC-8154801 ]

            People

            • Assignee:
              smarks Stuart Marks
              Reporter:
              smarks Stuart Marks
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: