Project: Eclipse_Platform_UI
Bug 75051 [ViewMgmt] [EditorMgmt] [Workbench] ClassCastException closing workbench
Reported: 2004-09-26 09:48:59 | Status: verified fixed

Using the 3.0.1 GM Build ====================================== I have seen the following ClassCastException quite a few times when closing the workbench: !ENTRY org.eclipse.core.runtime 4 2 Sep 21, 2004 08:52:52.265 !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.core.ru ntime". !STACK 0 java.lang.ClassCastException: org/eclipse/ui/internal/EditorActionBars incompati ble with org/eclipse/ui/internal/ViewActionBars at org.eclipse.ui.internal.ViewFactory.destroyView(Unknown Source) at org.eclipse.ui.internal.ViewFactory.releaseView(Unknown Source) at org.eclipse.ui.internal.Perspective.dispose(Unknown Source) at org.eclipse.ui.internal.WorkbenchPage.dispose(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow.closeAllPages(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow.hardClose(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow.busyClose(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow.access$0(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow$1.run(Unknown Source) at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source) at org.eclipse.ui.internal.WorkbenchWindow.close(Unknown Source) at org.eclipse.jface.window.WindowManager.close(Unknown Source) at org.eclipse.ui.internal.Workbench$10.run(Unknown Source) at org.eclipse.core.internal.runtime.InternalPlatform.run(Unknown Source ) at org.eclipse.core.runtime.Platform.run(Unknown Source) at org.eclipse.ui.internal.Workbench.busyClose(Unknown Source) at org.eclipse.ui.internal.Workbench.access$8(Unknown Source) at org.eclipse.ui.internal.Workbench$12.run(Unknown Source) at org.eclipse.swt.custom.BusyIndicator.showWhile(Unknown Source) at org.eclipse.ui.internal.Workbench.close(Unknown Source) at org.eclipse.ui.internal.Workbench.close(Unknown Source) at org.eclipse.ui.internal.QuitAction.run(Unknown Source) at org.eclipse.jface.action.Action.runWithEvent(Unknown Source) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection (Unknown Source) at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Sour ce) at org.eclipse.jface.action.ActionContributionItem$7.handleEvent(Unknown Source) at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source) at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source) at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source) at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source) at org.eclipse.ui.internal.Workbench.runUI(Unknown Source) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Sourc e) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source) at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source) at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Sou rce) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:273) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja va:129) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:85) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:58) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:60) at java.lang.reflect.Method.invoke(Method.java:391) at org.eclipse.core.launcher.Main.basicRun(Main.java:185) at org.eclipse.core.launcher.Main.run(Main.java:684) at org.eclipse.core.launcher.Main.main(Main.java:668)

Files changed in fix:
bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/EditorPart.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/ViewPart.java bundles/org.eclipse.ui.workbench/Eclipse UI/org/eclipse/ui/part/WorkbenchPart.java