s-webber / projog

Prolog programming for the Java platform.
Apache License 2.0
34 stars 9 forks source link

No longer use java.util.Observer and Observable #191

Closed s-webber closed 3 years ago

s-webber commented 3 years ago

Projog contains ProjogEventsObservable to allow clients to receive notification of events. It uses java.util.Observable and java.util.Observer. These classes are deprecated in Java 9. In anticipation of this, move towards using a Projog specific listener interface instead.

Further reading:

https://stackoverflow.com/questions/46380073/observer-is-deprecated-in-java-9-what-should-we-use-instead-of-it https://bugs.openjdk.java.net/browse/JDK-8154801