diff options
| author | Oleg Besedin | 2011-08-31 20:32:33 +0000 |
|---|---|---|
| committer | Oleg Besedin | 2011-08-31 20:32:33 +0000 |
| commit | 1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810 (patch) | |
| tree | c4ec643f0f58b9aee9f607781001e7fd643d611a | |
| parent | 5594fb406ce14e7af0ff0948c540578b635398da (diff) | |
| download | eclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.tar.gz eclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.tar.xz eclipse.platform.ui-1e4ca2069cf2dcc2cdb4112a6d1eb45783e4b810.zip | |
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.java | 3 |
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 0c25a0a0e31..9a95a3bf17a 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; |
