Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8277861: Terminally deprecate Thread.stop
Reviewed-by: rriggs, mchung, uschindler, dholmes
  • Loading branch information
Alan Bateman committed Dec 1, 2021
1 parent 70d5dff commit fde0b95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/java.base/share/classes/java/lang/Thread.java
Expand Up @@ -922,7 +922,7 @@ private void exit() {
* <a href="{@docRoot}/java.base/java/lang/doc-files/threadPrimitiveDeprecation.html">Why
* are Thread.stop, Thread.suspend and Thread.resume Deprecated?</a>.
*/
@Deprecated(since="1.2")
@Deprecated(since="1.2", forRemoval=true)
public final void stop() {
@SuppressWarnings("removal")
SecurityManager security = System.getSecurityManager();
Expand Down
1 change: 1 addition & 0 deletions src/java.base/share/classes/java/lang/ThreadGroup.java
Expand Up @@ -628,6 +628,7 @@ private int enumerate(ThreadGroup[] list, int n, boolean recurse) {
* {@link Thread#stop} for details.
*/
@Deprecated(since="1.2", forRemoval=true)
@SuppressWarnings("removal")
public final void stop() {
if (stopOrSuspend(false))
Thread.currentThread().stop();
Expand Down

1 comment on commit fde0b95

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.