mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8277861: Terminally deprecate Thread.stop
Reviewed-by: rriggs, mchung, uschindler, dholmes
This commit is contained in:
parent
70d5dffb4e
commit
fde0b95ede
2 changed files with 2 additions and 1 deletions
|
@ -922,7 +922,7 @@ public class Thread implements Runnable {
|
||||||
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
|
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
|
||||||
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
|
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
|
||||||
*/
|
*/
|
||||||
@Deprecated(since="1.2")
|
@Deprecated(since="1.2", forRemoval=true)
|
||||||
public final void stop() {
|
public final void stop() {
|
||||||
@SuppressWarnings("removal")
|
@SuppressWarnings("removal")
|
||||||
SecurityManager security = System.getSecurityManager();
|
SecurityManager security = System.getSecurityManager();
|
||||||
|
|
|
@ -628,6 +628,7 @@ public class ThreadGroup implements Thread.UncaughtExceptionHandler {
|
||||||
* {@link Thread#stop} for details.
|
* {@link Thread#stop} for details.
|
||||||
*/
|
*/
|
||||||
@Deprecated(since="1.2", forRemoval=true)
|
@Deprecated(since="1.2", forRemoval=true)
|
||||||
|
@SuppressWarnings("removal")
|
||||||
public final void stop() {
|
public final void stop() {
|
||||||
if (stopOrSuspend(false))
|
if (stopOrSuspend(false))
|
||||||
Thread.currentThread().stop();
|
Thread.currentThread().stop();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue