Community
Participate
Working Groups
I am using eclipse 3.1M5a with java 1.5 (detailed versions below) Steps to reproduce: 1) Create the following two files (they must be seperate files if they are in the same file this error does not occur) In GenericsTest.java class MyException extends Exception { } public class GenericsTest { public static void main(String[] args) throws MyException { Thrower<MyException> thrower = new Thrower<MyException>() { public void throwIt() throws MyException { throw new MyException(); } }; thrower.throwIt(); } } In Thrower.java public interface Thrower<E extends Exception> { public void throwIt() throws E; } 2) When a clean build is done they compile fine. 3) As soon as you edit GenericsTest.java the following compiler error appears: Unhandled exception of type Exception on line 15 of GenericsTest.java These two files compile correctly with javac 1.5 Windows Version: Windows XP SP2 Java version: build 1.5.0_01-b08 Eclipse Version: 3.1.0 Eclipse Build id: I20050219-1500
Created attachment 19305 [details] Thrower.java
Created attachment 19306 [details] GenericsTest.java
Added GenericTypeTest#test567 *** This bug has been marked as a duplicate of 83002 ***