Project: JDT
Bug 4376 refactoring CCE
Reported: 2001-10-11 10:21:47 | Status: resolved fixed

1. create a non java project abc 2. create junit 3. rename Assert.java java.lang.reflect.InvocationTargetException: java.lang.ClassCastException: org.eclipse.jdt.internal.core.JavaProject at org.eclipse.jdt.internal.core.refactoring.Checks.excludeCompilationUnits (Checks.java:413) at org.eclipse.jdt.internal.core.refactoring.rename.RenameTypeRefactoring.analyzeAf fectedCompilationUnits(RenameTypeRefactoring.java:459) at org.eclipse.jdt.internal.core.refactoring.rename.RenameTypeRefactoring.checkInpu t(RenameTypeRefactoring.java:231) at org.eclipse.jdt.internal.core.refactoring.rename.RenameCompilationUnitRefactorin g.checkInput(RenameCompilationUnitRefactoring.java:177) at org.eclipse.jdt.internal.ui.refactoring.CheckConditionsOperation.run (CheckConditionsOperation.java:58) at org.eclipse.jdt.internal.ui.refactoring.CreateChangeOperation.run (CreateChangeOperation.java:93) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run (ModalContext.java:98)

Files changed in fix:
org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/core/refactoring/Checks.java