From fc645e8682da8e853f21451e9833cabd9918337e Mon Sep 17 00:00:00 2001 From: Olivier Prouvost Date: Sat, 19 Nov 2022 04:40:26 +0100 Subject: [PATCH] =?UTF-8?q?Fix=20#369=20[Spy]=20StackOverflow=20in=20the?= =?UTF-8?q?=20ContextSpy=20when=20selecting=20the=20Osg=E2=80=A6=20(#408)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Fix #369 [Spy] StackOverflow in the ContextSpy when selecting the OsgiContext * Update manifest version --- ui/org.eclipse.pde.spy.context/META-INF/MANIFEST.MF | 2 +- .../eclipse/pde/internal/spy/context/ContextDataProvider.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/org.eclipse.pde.spy.context/META-INF/MANIFEST.MF b/ui/org.eclipse.pde.spy.context/META-INF/MANIFEST.MF index 3691a3a28b..bfe00aea2f 100644 --- a/ui/org.eclipse.pde.spy.context/META-INF/MANIFEST.MF +++ b/ui/org.eclipse.pde.spy.context/META-INF/MANIFEST.MF @@ -2,7 +2,7 @@ Manifest-Version: 1.0 Bundle-ManifestVersion: 2 Bundle-Name: %name Bundle-SymbolicName: org.eclipse.pde.spy.context;singleton:=true -Bundle-Version: 1.0.300.qualifier +Bundle-Version: 1.0.400.qualifier Bundle-Vendor: %provider-name Automatic-Module-Name: org.eclipse.pde.spy.context Bundle-RequiredExecutionEnvironment: JavaSE-11 diff --git a/ui/org.eclipse.pde.spy.context/src/org/eclipse/pde/internal/spy/context/ContextDataProvider.java b/ui/org.eclipse.pde.spy.context/src/org/eclipse/pde/internal/spy/context/ContextDataProvider.java index 5144dde5cb..320b93c544 100644 --- a/ui/org.eclipse.pde.spy.context/src/org/eclipse/pde/internal/spy/context/ContextDataProvider.java +++ b/ui/org.eclipse.pde.spy.context/src/org/eclipse/pde/internal/spy/context/ContextDataProvider.java @@ -121,7 +121,7 @@ public Object[] getChildren(Object inputElement) { for (String key : selectedContext.localContextFunction().keySet()) try { cfValues.put(key, selectedContext.get(key)); - } catch (Exception e) { + } catch (Throwable e) { cfValues.put(key, NO_VALUE_COULD_BE_COMPUTED + " (Exception : " + e.getClass().getName() + ")"); //$NON-NLS-1$ //$NON-NLS-2$ } result.addAll(cfValues.entrySet());