Bug 14465

Summary: ClassCastException renaming build.xml file
Product: [Eclipse Project] JDT Reporter: Rodrigo Peretti <rodrigo>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1 CC: darin.eclipse, dejan, jared_burns
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Rodrigo Peretti CLA 2002-04-23 19:28:30 EDT
build 20020423

Rename a build.xml file and get an Internal Error dialog with the following 
stack trace:

java.lang.ClassCastException: org.eclipse.core.internal.resources.File
	at 
org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run
(RenameJavaElementAction.java:37)
	at org.eclipse.jdt.internal.ui.refactoring.actions.RenameAction.run
(RenameAction.java:66)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun
(SelectionDispatchAction.java:132)
	at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run
(SelectionDispatchAction.java:94)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:590)
	at 
org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection
(ActionContributionItem.java:407)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetEvent
(ActionContributionItem.java:361)
	at org.eclipse.jface.action.ActionContributionItem.access$0
(ActionContributionItem.java:352)
	at 
org.eclipse.jface.action.ActionContributionItem$ActionListener.handleEvent
(ActionContributionItem.java:47)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java
(Compiled Code))
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java(Compiled 
Code))
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java
(Compiled Code))
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java
(Compiled Code))
	at org.eclipse.ui.internal.Workbench.run(Workbench.java:816)
	at org.eclipse.core.internal.boot.InternalBootLoader.run
(InternalBootLoader.java:643)
	at org.eclipse.core.boot.BootLoader.run(BootLoader.java:349)
	at java.lang.reflect.Method.invoke(Native Method)
	at org.eclipse.core.launcher.Main.basicRun(Main.java:195)
	at org.eclipse.core.launcher.Main.run(Main.java:541)
	at org.eclipse.core.launcher.Main.main(Main.java:396)
Comment 1 Adam Kiezun CLA 2002-04-24 04:30:53 EDT
*** Bug 14470 has been marked as a duplicate of this bug. ***
Comment 2 Adam Kiezun CLA 2002-04-24 04:35:43 EDT
fixed
Comment 3 Adam Kiezun CLA 2002-04-24 09:50:12 EDT
*** Bug 14505 has been marked as a duplicate of this bug. ***
Comment 4 Adam Kiezun CLA 2002-04-25 12:14:16 EDT
*** Bug 14631 has been marked as a duplicate of this bug. ***