Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-10-17 11:08:16 -0400
committerThomas Watson2013-10-17 11:08:16 -0400
commitd1e8dd2853cfb6ed8f5fd17dfa86945cb71ec0dc (patch)
tree3d3a92d7c50054ff6917eb3a0913e8d3b1bfc43c
parent178b25e4f055533be7ae8035e73fece3dfc6a581 (diff)
downloadrt.equinox.framework-d1e8dd2853cfb6ed8f5fd17dfa86945cb71ec0dc.tar.gz
rt.equinox.framework-d1e8dd2853cfb6ed8f5fd17dfa86945cb71ec0dc.tar.xz
rt.equinox.framework-d1e8dd2853cfb6ed8f5fd17dfa86945cb71ec0dc.zip
Bug 419725 - IllegalStateException while resolving bundles when a persistently started bundle gets uninstalled I20131022-1300I20131022-0800
- Fixed by catching the IllegalStateException similar to how start level impl does
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
index 7ba94bd43..f5399f91e 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/container/ModuleContainer.java
@@ -666,6 +666,9 @@ public final class ModuleContainer {
}
} catch (BundleException e) {
adaptor.publishContainerEvent(ContainerEvent.ERROR, module, e);
+ } catch (IllegalStateException e) {
+ // been uninstalled
+ continue;
}
}
}
@@ -679,6 +682,9 @@ public final class ModuleContainer {
secureAction.start(module, StartOptions.TRANSIENT_IF_AUTO_START, StartOptions.TRANSIENT_RESUME);
} catch (BundleException e) {
adaptor.publishContainerEvent(ContainerEvent.ERROR, module, e);
+ } catch (IllegalStateException e) {
+ // been uninstalled
+ continue;
}
}
return true;

Back to the top