Bug 11860 - Cannot move a compilation unit
Summary: Cannot move a compilation unit
Status: RESOLVED DUPLICATE of bug 11627
Alias: None
Product: JDT
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 blocker (vote)
Target Milestone: 2.0 M4   Edit
Assignee: Erich Gamma CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-03-20 09:52 EST by Erich Gamma CLA
Modified: 2002-03-20 14:29 EST (History)
1 user (show)

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-03-20 09:52:08 EST
1) JUnit set up
2) select junit.framework.TestCase
3) drag and drop it into junit.extensions
4) press yes to update the references and preview
->Class Cast Exception

java.lang.reflect.InvocationTargetException: java.lang.ClassCastException: 
org.eclipse.jdt.internal.compiler.lookup.BinaryTypeBinding
	at 
org.eclipse.jdt.internal.core.search.matching.DeclarationOfReferencedTypesPatter
n.reportDeclaration(DeclarationOfReferencedTypesPattern.java:97)
	at 
org.eclipse.jdt.internal.core.search.matching.DeclarationOfReferencedTypesPatter
n.matchReportReference(DeclarationOfReferencedTypesPattern.java:78)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.reportReference
(MatchLocator.java:1024)
	at org.eclipse.jdt.internal.core.search.matching.MatchSet.reportMatching
(MatchSet.java:161)
	at org.eclipse.jdt.internal.core.search.matching.MatchSet.reportMatching
(MatchSet.java:338)
	at org.eclipse.jdt.internal.core.search.matching.MatchSet.reportMatching
(MatchSet.java:246)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenable.locateMatchesInCo
mpilationUnit(MatchingOpenable.java:295)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchingOpenable.locateMatches
(MatchingOpenable.java:155)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:1312)
	at 
org.eclipse.jdt.internal.core.search.matching.MatchLocator.locateMatches
(MatchLocator.java:586)
	at 
org.eclipse.jdt.core.search.SearchEngine.searchDeclarationsOfReferencedTypes
(SearchEngine.java:638)
	at 
org.eclipse.jdt.internal.corext.refactoring.structure.ReferenceFinderUtil.getTyp
eReferencesIn(ReferenceFinderUtil.java:48)
	at 
org.eclipse.jdt.internal.corext.refactoring.structure.ReferenceFinderUtil.getTyp
eReferencesIn(ReferenceFinderUtil.java:40)
	at 
org.eclipse.jdt.internal.corext.refactoring.structure.ReferenceFinderUtil.getTyp
esReferencedIn(ReferenceFinderUtil.java:31)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.addImportT
oSourcePackageTypes(MoveCuUpdateCreator.java:172)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.addUpdates
(MoveCuUpdateCreator.java:121)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.addUpdates
(MoveCuUpdateCreator.java:112)
	at 
org.eclipse.jdt.internal.corext.refactoring.reorg.MoveCuUpdateCreator.createUpda
teChange(MoveCuUpdateCreator.java:90)
	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-03-20 10:03:35 EST

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