Skip to content

Commit 35bd0d7

Browse files
committed
Do not catch/rethrow ThreadDeath
In Java 21 Thread.stop simply throws UnsupportedOperationException and ThreadDeath was thrown only from that method in older JVM versions.
1 parent 0d469e7 commit 35bd0d7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright (c) 2000, 2021 IBM Corporation and others.
2+
* Copyright (c) 2000, 2024 IBM Corporation and others.
33
*
44
* This program and the accompanying materials
55
* are made available under the terms of the Eclipse Public License 2.0
@@ -332,8 +332,6 @@ public static void runLiveHelp(String pluginID, String className, String arg) {
332332
runnableLiveHelp.setDaemon(true);
333333
runnableLiveHelp.start();
334334
}
335-
} catch (ThreadDeath td) {
336-
throw td;
337335
} catch (Exception e) {
338336
}
339337
}

0 commit comments

Comments
 (0)