Project: JDT
Bug 105743 [generalize type] Internal Error with exception in catch clause
Reported: 2005-08-01 17:36:13 | Status: verified fixed

The following Java code is written under JDK 1.5.04 with the Java-Editor of Eclipse 3.1 (WinXP): ----------- <snip> ----------------- import java.io.*; public class C { public void f(File f) { try { FileInputStream is = new FileInputStream(f); } catch (FileNotFoundException ex) { System.err.println("file not found"); } } } -------------- </snip> --------------- When trying to generalize the type FileNotFoundException (refactoring), I get an "internal error during computation of valid types" (reproducable). When I do the same thing for the FileInputStream, everything is fine. Bye, Michael

Files changed in fix:
org.eclipse.jdt.ui.tests.refactoring/resources/ChangeTypeRefactoring/positive/A_testCatchClause_in.java org.eclipse.jdt.ui.tests.refactoring/resources/ChangeTypeRefactoring/positive/A_testCatchClause_out.java org.eclipse.jdt.ui.tests.refactoring/test cases/org/eclipse/jdt/ui/tests/refactoring/ChangeTypeRefactoringTests.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/structure/ChangeTypeRefactoring.java org.eclipse.jdt.ui/core refactoring/org/eclipse/jdt/internal/corext/refactoring/typeconstraints/FullConstraintCreator.java