From 569c2a61528ec61cec20bd0615df8fd0039b1eb0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D1=8A?= =?UTF-8?q?=D1=80=20=D0=9A=D1=83=D1=80=D1=82=D0=B0=D0=BA=D0=BE=D0=B2?= Date: Tue, 17 Dec 2024 09:18:30 +0200 Subject: [PATCH] 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. --- .../src/org/eclipse/help/internal/base/BaseHelpSystem.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java b/ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java index 9c5009eff8a..999ea81f38d 100644 --- a/ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java +++ b/ua/org.eclipse.help.base/src/org/eclipse/help/internal/base/BaseHelpSystem.java @@ -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 @@ -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) { } }