Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2012-10-16 02:49:49 -0400
committerUwe Stieber2012-10-16 02:50:20 -0400
commitbed984c21bdac29701583e70ff1fc2dc675a367d (patch)
tree6083ecc676a51df909564f12f467900ff8a711b4
parentc180608f022183bca567cf1999a1a88f671f90e4 (diff)
downloadorg.eclipse.tcf-bed984c21bdac29701583e70ff1fc2dc675a367d.tar.gz
org.eclipse.tcf-bed984c21bdac29701583e70ff1fc2dc675a367d.tar.xz
org.eclipse.tcf-bed984c21bdac29701583e70ff1fc2dc675a367d.zip
Eclipse Integration: Bug 391941 - BundleException while initializing org.eclipse.tcf integration bundle
-rw-r--r--plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java b/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
index 15fd703ea..1caa543a4 100644
--- a/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
+++ b/plugins/org.eclipse.tcf.core/activator/org/eclipse/tcf/internal/Activator.java
@@ -33,12 +33,11 @@ public class Activator implements BundleActivator {
if (bundles != null) {
for (Bundle bundle : bundles) {
if ((bundle.getState() & (Bundle.INSTALLED | Bundle.UNINSTALLED)) == 0) {
- // Call the start(...) only if in RESOLVED state, otherwise
- // this can trigger a state change bundle exception
- if (bundle.getState() == Bundle.RESOLVED) {
- bundle.start(Bundle.START_TRANSIENT);
- }
- cnt++;
+ // Calling the start(...) method leads to an state change bundle
+ // exception in case the bundle is not in RESOLVED state. Trigger
+ // the bundle activation via the loadClass method is apparently safer.
+ bundle.loadClass("org.eclipse.tcf.Activator");
+ cnt++;
}
}
}

Back to the top