From 94cca7e45a039856425db0b58e9ca79c8d6665b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoph=20L=C3=A4ubrich?= Date: Sat, 27 Apr 2024 09:37:30 +0200 Subject: [PATCH] Also handle RuntimeException when performing ClasspathFixProposal Currently when a RuntimeException occurs inside ClasspathFixProposal an obscure error dialog as the wizard already handles errors if they are InvocationTargetException this now wraps RuntimeException as well. --- .../ui/wizards/buildpaths/ClasspathFixSelectionDialog.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ClasspathFixSelectionDialog.java b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ClasspathFixSelectionDialog.java index 368642e4045..b7b6497c08b 100644 --- a/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ClasspathFixSelectionDialog.java +++ b/org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/ClasspathFixSelectionDialog.java @@ -109,6 +109,8 @@ public static boolean openClasspathFixSelectionDialog(Shell parent, final IJavaP throw new InterruptedException(); } catch (CoreException e2) { throw new InvocationTargetException(e2); + } catch(RuntimeException e3) { + throw new InvocationTargetException(e3); } finally { monitor.done(); }