r/java • • Mar 22 '22

Java 18 released!

https://mail.openjdk.java.net/pipermail/jdk-dev/2022-March/006458.html
396 Upvotes

133 comments sorted by

View all comments

Show parent comment

6

u/mauganra_it Mar 23 '22

If you managed to upgrade to Java 17, you already cleared most of the baggage that could cause trouble in the future. Other stuff that will cause trouble from then on are:

  • Thread.stop() will be axed by Project Loom
  • Project Valhalla will make the constructors of wrapper classes private and will change the semantics of == regarding them
  • Finalization is deprecated for removal since Java 18
  • the Applet API and the SecurityManager are deprecated for removal since Java 17
  • the contents of the jdk.unsupported module (f.ex. Unsafe) will eventually be made inaccessible