Bug 14465 - ClassCastException renaming build.xml file
Summary: ClassCastException renaming build.xml file
Status: RESOLVED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Adam Kiezun CLA
QA Contact:
URL:
Whiteboard:
Keywords:
: 14470 14505 14631 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-04-23 19:28 EDT by Rodrigo Peretti CLA
Modified: 2002-04-25 12:14 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. ***