Bug 7590

Summary: CCE: during move refactoring
Product: [Eclipse Project] JDT Reporter: Erich Gamma <erich_gamma>
Component: UIAssignee: Adam Kiezun <akiezun>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P1    
Version: 2.0   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

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.