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();")
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.
16
u/__konrad Mar 21 '23
New APIs: https://javaalmanac.io/jdk/20/apidiff/19/
Release Notes: https://jdk.java.net/20/release-notes