r/java • • Mar 21 '23

Java 20 / JDK 20: General Availability

https://mail.openjdk.org/pipermail/announce/2023-March/000333.html
173 Upvotes

71 comments sorted by

View all comments

16

u/__konrad Mar 21 '23

10

u/agoubard Mar 21 '23

From the release notes, I noted this one:

The ability to "stop" a thread with the Thread.stop() method has been removed in this release. The method has been changed to throw UnsupportedOperationException.

Even if it has been deprecated for a long time, it was still used a lot (8,000 result in github for "thread.stop();")

6

u/Joram2 Mar 22 '23

I suspect most of that code isn't actively used or maintained. Maybe it's not even Java.

And if it is actively used/maintained, and they actually upgrade to Java 20+, they will have to fix it. That sounds like a good thing.