RFR(s): 8154801 deprecate java.util.Observable/Observer

Doug Lea dl at cs.oswego.edu
Sun Apr 24 13:13:58 UTC 2016

On 04/21/2016 10:17 PM, Stuart Marks wrote:
> Hi all,
> Here's a small proposal to deprecate the java.util.Observable and Observer. This
> deprecation will not be for removal.

These days, anyone encountering these is probably hitting them
by mistake while using RxJava or other reactive-stream frameworks.
In which case, users will normally want to instead use the jdk9
java.util.concurrent.Flow APIs that all reactive-streams frameworks
should be compatible/interoperable with in their planned upcoming
jdk9-compatible versions. I'm not sure how to state this now in
any @Deprecated docs or other Observable and Observer javadocs though.


More information about the core-libs-dev mailing list