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();")

3

u/magnoliophytina Mar 21 '23

Open source projects are full of bugs. Just pick any Java project from GH, launch IDEA, run 'Inspect code'. Sometimes it's impossible to even submit fixes because the author might disagree.