Project: JDT
Bug 7132 Exception thrown in "New Java Project" wizard
Reported: 2001-12-20 10:42:00 | Status: resolved fixed

The following exception was thrown when I type ".." in front of the default path for the build output folder in the new Java project wizard. I'm using build 137. Log: Thu Dec 20 10:20:00 EST 2001 4 org.eclipse.core.runtime 0 Unhandled exception caught in event loop. java.lang.ClassCastException: org.eclipse.core.internal.resources.WorkspaceRoot at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.updateBuildPa thStatus(BuildPathsBlock.java:529) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock.access$4(Buil dPathsBlock.java:508) at org.eclipse.jdt.internal.ui.wizards.buildpaths.BuildPathsBlock$BuildPathAdap ter.dialogFieldChanged(BuildPathsBlock.java:130) at org.eclipse.jdt.internal.ui.wizards.dialogfields.DialogField.dialogFieldChan ged(DialogField.java:54) at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField.doModifyT ext(StringDialogField.java:44) at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField.access$0( StringDialogField.java:40) at org.eclipse.jdt.internal.ui.wizards.dialogfields.StringDialogField$1.modifyT ext(StringDialogField.java:64) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:177) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:819) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java(Compiled Code)) at org.eclipse.swt.widgets.Text.wmCommandChild(Text.java:1633) at org.eclipse.swt.widgets.Control.WM_COMMAND(Control.java:2422) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.CallWindowProc(Native Method) at org.eclipse.swt.widgets.Text.callWindowProc(Text.java:170) at org.eclipse.swt.widgets.Control.windowProc(Control.java(Compiled Code)) at org.eclipse.swt.widgets.Display.windowProc(Display.java(Compiled Code)) at org.eclipse.swt.internal.win32.OS.DispatchMessage(Native Method) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java(Compiled Code)) at org.eclipse.jface.window.Window.runEventLoop(Window.java(Compiled Code)) at org.eclipse.jface.window.Window.open(Window.java:523) at org.eclipse.ui.actions.NewWizardAction.run(NewWizardAction.java:74) at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Action ContributionItem.java:407) at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent(ActionCont ributionItem.java:361) at org.eclipse.jface.action.ActionContributionItem.access$0(ActionContributionI tem.java:352) at org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent(A ctionContributionItem.java:47) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java(Compiled Code)) at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:634) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1282) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1092) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:673) at org.eclipse.ui.internal.Workbench.run(Workbench.java:656) at org.eclipse.core.internal.boot.InternalBootLoader.run(InternalBootLoader.jav a:815) at org.eclipse.core.boot.BootLoader.run(BootLoader.java:285) at java.lang.reflect.Method.invoke(Native Method) at org.eclipse.core.launcher.Main.basicRun(Main.java:151) at org.eclipse.core.launcher.Main.run(Main.java:433) at org.eclipse.core.launcher.Main.main(Main.java:306)

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/wizards/buildpaths/BuildPathsBlock.java