8277861: Terminally deprecate Thread.stop

Reviewed-by: rriggs, mchung, uschindler, dholmes
This commit is contained in:
Alan Bateman 2021-12-01 08:44:51 +00:00
parent 70d5dffb4e
commit fde0b95ede
2 changed files with 2 additions and 1 deletions

View file

@ -628,6 +628,7 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
* {@link Thread#stop} for details.
*/
@Deprecated(since="1.2", forRemoval=true)
@SuppressWarnings("removal")
public final void stop() {
if (stopOrSuspend(false))
Thread.currentThread().stop();