Skip to content

Commit

Permalink
Do not catch/rethrow ThreadDeath
Browse files Browse the repository at this point in the history
In Java 21 Thread.stop simply throws UnsupportedOperationException and
ThreadDeath was thrown only from that method in older JVM versions.
  • Loading branch information
akurtakov committed Dec 17, 2024
1 parent 3e41618 commit 569c2a6
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2000, 2021 IBM Corporation and others.
* Copyright (c) 2000, 2024 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
Expand Down Expand Up @@ -332,8 +332,6 @@ public static void runLiveHelp(String pluginID, String className, String arg) {
runnableLiveHelp.setDaemon(true);
runnableLiveHelp.start();
}
} catch (ThreadDeath td) {
throw td;
} catch (Exception e) {
}
}
Expand Down

0 comments on commit 569c2a6

Please sign in to comment.