Bug 14631 - ClassCastException renaming zip file in packages view
Summary: ClassCastException renaming zip file in packages view
Status: RESOLVED DUPLICATE of bug 14465
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: Other Linux-Motif
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-04-25 12:05 EDT by Jared Burns CLA
Modified: 2002-04-25 12:14 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jared Burns CLA 2002-04-25 12:05:03 EDT
Build 20020423
Linux-Motif

In a selfhosting workspace with org.eclipse.core.runtime imported as binary, I
expanded the project in the packages view, right clicked on the file
"runtimesrc.zip" and chose "rename." The following exception occurred:

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:75)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:488)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:1552)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:1401)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:833)
	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 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:324)
	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-25 12:14:15 EDT
fixed for the 20020425 build

*** This bug has been marked as a duplicate of 14465 ***