Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 123630

Summary: CCE pressing Aply in Launch config pref page
Product: [Eclipse Project] Platform Reporter: Darin Wright <darin.eclipse>
Component: DebugAssignee: Darin Wright <darin.eclipse>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: Michael_Rennie
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Darin Wright CLA 2006-01-12 12:02:34 EST
With the LCD open, I pressed "restore default" on the launch configurations pref page. I got this CCE:

java.lang.ClassCastException: java/lang/String incompatible with java/lang/Boolean
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.propertyChange(LaunchConfigurationsDialog.java:1805)
at org.eclipse.ui.preferences.ScopedPreferenceStore$3.run(ScopedPreferenceStore.java:360)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:785)
at org.eclipse.ui.preferences.ScopedPreferenceStore.firePropertyChangeEvent(ScopedPreferenceStore.java:357)
at org.eclipse.ui.preferences.ScopedPreferenceStore$2.preferenceChange(ScopedPreferenceStore.java:188)
at org.eclipse.core.internal.preferences.EclipsePreferences$2.run(EclipsePreferences.java:742)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.preferences.EclipsePreferences.firePreferenceEvent(EclipsePreferences.java:745)
at org.eclipse.core.internal.preferences.EclipsePreferences.remove(EclipsePreferences.java:855)
at org.eclipse.ui.preferences.ScopedPreferenceStore.setToDefault(ScopedPreferenceStore.java:638)
at org.eclipse.jface.preference.FieldEditor.store(FieldEditor.java:664)
at org.eclipse.debug.internal.ui.preferences.LaunchConfigurationsPreferencePage.performOk(LaunchConfigurationsPreferencePage.java:312)
at org.eclipse.jface.preference.PreferenceDialog$11.run(PreferenceDialog.java:862)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.runtime.Platform.run(Platform.java:785)
at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:44)
at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:148)
at org.eclipse.jface.preference.PreferenceDialog.okPressed(PreferenceDialog.java:842)
at org.eclipse.jface.preference.PreferenceDialog.buttonPressed(PreferenceDialog.java:227)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:607)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:90)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:914)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:808)
at org.eclipse.jface.window.Window.open(Window.java:786)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$5.run(LaunchConfigurationsDialog.java:629)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog$4.run(LaunchConfigurationsDialog.java:625)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:492)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:433)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:914)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:808)
at org.eclipse.jface.window.Window.open(Window.java:786)
at org.eclipse.debug.internal.ui.launchConfigurations.LaunchConfigurationsDialog.open(LaunchConfigurationsDialog.java:1313)
at org.eclipse.debug.ui.DebugUITools$1.run(DebugUITools.java:359)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:69)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:363)
at org.eclipse.debug.ui.DebugUITools.openLaunchConfigurationDialogOnGroup(DebugUITools.java:305)
at org.eclipse.debug.ui.actions.OpenLaunchDialogAction.run(OpenLaunchDialogAction.java:80)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:492)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:530)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:480)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:392)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:914)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3287)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2907)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:1790)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:1754)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:403)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:143)
at org.eclipse.ui.internal.ide.IDEApplication.run(IDEApplication.java:106)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:109)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:381)
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:85)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:58)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:60)
at java.lang.reflect.Method.invoke(Method.java:391)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:338)
at org.eclipse.core.launcher.Main.basicRun(Main.java:282)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.Main.main(Main.java:952)
Comment 1 Michael Rennie CLA 2006-01-12 17:20:40 EST
caused by an inconsistency between loading defaults and working with events, one works as Boolean and the other String.

updated LaunchConifgurationsDialog#propertyChange() to check for both.

fixed in HEAD.
Comment 2 Michael Rennie CLA 2006-01-12 17:21:22 EST
please verify Darin.
Comment 3 Darin Wright CLA 2006-01-13 22:51:09 EST
needs verification
Comment 4 Darin Wright CLA 2006-01-14 00:16:28 EST
Verified