Project: SWT
Bug 249517 ClassCastException in Combo
Reported: 2008-10-02 12:05:03 | Status: resolved fixed

open org.eclipse.ui.carbon's fragment.xml. java.lang.ClassCastException: org.eclipse.swt.internal.cocoa.SWTPopUpButton at org.eclipse.swt.widgets.Combo.setBackground(Combo.java:1118) at org.eclipse.swt.widgets.Control.setBackground(Control.java:2319) at org.eclipse.ui.forms.widgets.FormToolkit.adapt(FormToolkit.java:433) at org.eclipse.pde.internal.ui.parts.ComboPart.createControl(ComboPart.java:53) at org.eclipse.pde.internal.ui.editor.plugin.FragmentGeneralInfoSection.createBundlePluginVersionEntry(FragmentGeneralInfoSection.java:197) at org.eclipse.pde.internal.ui.editor.plugin.FragmentGeneralInfoSection.createPluginVersionEntry(FragmentGeneralInfoSection.java:153) at org.eclipse.pde.internal.ui.editor.plugin.FragmentGeneralInfoSection.createSpecificControls(FragmentGeneralInfoSection.java:71) at org.eclipse.pde.internal.ui.editor.plugin.GeneralInfoSection.createClient(GeneralInfoSection.java:89) at org.eclipse.pde.internal.ui.editor.plugin.GeneralInfoSection.<init>(GeneralInfoSection.java:62) at org.eclipse.pde.internal.ui.editor.plugin.FragmentGeneralInfoSection.<init>(FragmentGeneralInfoSection.java:62) at org.eclipse.pde.internal.ui.editor.plugin.OverviewPage.fillBody(OverviewPage.java:82) at org.eclipse.pde.internal.ui.editor.plugin.OverviewPage.createFormContent(OverviewPage.java:70) at org.eclipse.ui.forms.editor.FormPage$1.run(FormPage.java:151) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.forms.editor.FormPage.createPartControl(FormPage.java:149) at org.eclipse.pde.internal.ui.editor.PDEFormPage.createPartControl(PDEFormPage.java:312) at org.eclipse.ui.forms.editor.FormEditor.pageChange(FormEditor.java:491) at org.eclipse.pde.internal.ui.editor.PDEFormEditor.pageChange(PDEFormEditor.java:262) at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:973) at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:626) at org.eclipse.ui.forms.editor.FormEditor.setActivePage(FormEditor.java:532) at org.eclipse.pde.internal.ui.editor.PDEFormEditor.setActivePage(PDEFormEditor.java:777) at org.eclipse.pde.internal.ui.editor.PDEFormEditor.createPages(PDEFormEditor.java:253) at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:310) at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:678) at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:444) at org.eclipse.ui.internal.WorkbenchPartReference.getPart(WorkbenchPartReference.java:595) at org.eclipse.ui.internal.EditorReference.getEditor(EditorReference.java:268) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2820) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2729) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2721) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2673) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2668) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2652) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2643) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:646) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:605) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:318) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:160) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:229) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:208) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:250) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerActionGroup.handleOpen(PackageExplorerActionGroup.java:365) at org.eclipse.jdt.internal.ui.packageview.PackageExplorerPart$4.open(PackageExplorerPart.java:610) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:820) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:874) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:48) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:818) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1079) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1183) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:264) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:258) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:298) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:985) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1009) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:994) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:825) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:2816) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2550) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2382) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2346) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2198) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:493) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:333) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:488) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:193) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:370) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:549) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:504) at org.eclipse.equinox.launcher.Main.run(Main.java:1236)

Files changed in fix:
bundles/org.eclipse.swt/Eclipse SWT/cocoa/org/eclipse/swt/widgets/Combo.java