aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-08-31 16:32:33 (EDT)
committerOleg Besedin2011-08-31 16:32:33 (EDT)
commit1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810 (patch)
treec4ec643f0f58b9aee9f607781001e7fd643d611a
parent5594fb406ce14e7af0ff0948c540578b635398da (diff)
downloadeclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.zip
eclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.tar.gz
eclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.tar.bz2
Bug 344727 - [Workbench] Deadlock in of workbench use of synchronizationv20110831-2032
-rw-r--r--bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
index 0c25a0a..9a95a3b 100644
--- a/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
+++ b/bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/internal/WorkbenchPlugin.java
@@ -1244,10 +1244,11 @@ public class WorkbenchPlugin extends AbstractUIPlugin {
}
private void bundleChanged(BundleEvent event) {
+ int eventType = event.getType();
// a bundle in the STARTING state generates 2 events, LAZY_ACTIVATION
// when it enters STARTING and STARTING when it exists STARTING :-)
synchronized (startingBundles) {
- switch (event.getType()) {
+ switch (eventType) {
case BundleEvent.STARTING :
startingBundles.add(event.getBundle());
break;