aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Besedin2011-08-31 16:32:33 (EDT)
committerOleg Besedin2011-08-31 16:43:52 (EDT)
commit12a874c06118ea95a0fb2beb1312739f27f9775b (patch)
tree7a68169621b542e87e6cddb5b3858188d6965355
parent7e4fb75a060e47c7f39a8dfdf0afc002b9fc0835 (diff)
downloadeclipse.platform.ui-12a874c06118ea95a0fb2beb1312739f27f9775b.zip
eclipse.platform.ui-12a874c06118ea95a0fb2beb1312739f27f9775b.tar.gz
eclipse.platform.ui-12a874c06118ea95a0fb2beb1312739f27f9775b.tar.bz2
Bug 344727 - [Workbench] Deadlock in of workbench use of synchronization
-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 12c8d72..5c8a569 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
@@ -1156,10 +1156,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;