-
Sub-task
-
Resolution: Fixed
-
P4
-
None
-
b117
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 ofJDK-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.
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
[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.
- relates to
-
JDK-4212311 java.util.Observable.notifyObservers() doesn't conform to api
- Closed
-
JDK-4180466 Why is java.util.Observable class not serializable.
- Closed
-
JDK-4687908 Create an Observable interface
- Closed
-
JDK-8025077 Documentation of java.util.Observable
- Closed
-
JDK-8157055 consider unified release notes for deprecated APIs
- Closed
-
JDK-8155052 add notes and links to j.u.Observer/Observable deprecation comments
- Closed
(1 relates to)