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.
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.
- relates to
-
JDK-8154801 deprecate Observer and Observable
- Resolved