RFR(s): 8204243: remove Thread.destroy() and Thread.stop(Throwable)
stuart.marks at oracle.com
Fri Jun 1 21:16:35 UTC 2018
Please review this changeset to remove the Thread.destroy() and
Thread.stop(Throwable) methods. Both of these methods have been deprecated for a
long time, and they were deprecated for removal in Java SE 9.
Thread.destroy() was never implemented, and has always thrown NoSuchMethodError
back to the caller. Thread.stop(Throwable) was made non-functional in JDK 8,
throwing UnsupportedOperationException back to the caller.
Note that the no-arg Thread.stop() method remains deprecated, not for removal,
and is unaffected by this changeset.
Note also that ThreadGroup.destroy() doesn't actually destroy any threads --
just thread groups -- and that it is also unaffected by this changeset.
More information about the core-libs-dev