Bug 7590 - CCE: during move refactoring
Summary: CCE: during move refactoring
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:
Depends on:
Blocks:
 
Reported: 2002-01-15 04:03 EST by Erich Gamma CLA
Modified: 2002-01-15 05:21 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2002-01-15 04:03:46 EST
This happened during the CHOOSE Eclipse talk:

I was dragging junit.framework.Assert.java to junit.framework.extensions:

java.lang.reflect.InvocationTargetException: java.lang.ClassCastException: 
org.eclipse.jdt.internal.core.JarPackageFragmentRoot
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.collectCus
ThatWillImportDestinationPackage(MoveCuUpdateCreator.java:172)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.collectCus
ThatWillImportDestinationPackage(MoveCuUpdateCreator.java:161)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.addImports
ToDestinationPackage(MoveCuUpdateCreator.java:131)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.createUpda
teChange(MoveCuUpdateCreator.java:83)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveRefactoring.createChange
(MoveRefactoring.java:222)
	at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run
(CreateChangeOperation.java:97)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run
(ModalContext.java:98)
Comment 1 Adam Kiezun CLA 2002-01-15 05:21:06 EST
it somehow found a reference to one of moved types in a jar 
- i put some code to detect this case and skip the reference.

since it depends on the setup i'm asking you to verify that it fixes the 
problem.