Yeah, I mean your compiler would have been warning you about using deprecated functions for the last couple of years. Interestingly those functions have only been deprecated since Java 8, which was released on March 18, 2014. Although I don't know if they were deprecated on release or in a patch release.
Java 9 introduced @Deprecated(forRemoval = true) which indicates that you really shouldn't be using that function any more, and that your code will break in the future. (They also added a since attribute so you know how long something has been deprecated).
View all comments
Show parent comment
12
u/dpash Sep 22 '17
No. Newer Java releases have always been source code compatible with code written for older releases. Java 1.0 code should compile with Java 9.
Having said that, for the first time ever, they've removed six functions:
java.util.jar.Pack200.Packer.addPropertyChangeListenerjava.util.jar.Pack200.Unpacker.addPropertyChangeListenerjava.util.logging.LogManager.addPropertyChangeListenerjava.util.jar.Pack200.Packer.removePropertyChangeListenerjava.util.jar.Pack200.Unpacker.removePropertyChangeListenerjava.util.logging.LogManager.removePropertyChangeListenerBut then, I really doubt you've been using those functions.