RFR: 8277861: Terminally deprecate Thread.stop

David Holmes dholmes at openjdk.java.net
Wed Dec 1 02:02:28 UTC 2021


On Tue, 30 Nov 2021 14:52:37 GMT, Alan Bateman <alanb at openjdk.org> wrote:

> Thread.stop is inherently unsafe and has been deprecated since Java 1.2 (1998). It's time to terminally deprecate this method so it can be degraded and removed in the future.
> 
> This PR does not propose any changes to the JVM TI StopThread function (or the corresponding JDWP command or JDI method).

Approved with extreme prejudice. :)

-------------

Marked as reviewed by dholmes (Reviewer).

PR: https://git.openjdk.java.net/jdk/pull/6616


More information about the core-libs-dev mailing list