Community
Participate
Working Groups
It might also be broken earlier but this is the first code snippet I've seen with the problem. This code compiles fine with javac, but I get these errors. Severity Description Resource In Folder Location Creation Time 2 Cannot use the parameterized type Test.Ex1 either in catch block or throws clause Test.java fooey/src line 14 February 11, 2005 2:36:13 PM 2 si cannot be resolved Test.java fooey/src line 16 February 11, 2005 2:36:13 PM As you can see it's only in the case of the "static" exception - not the bound inner one. % cat Test.java public class Test<E> { public static final class Ex1 extends Exception { private static final long serialVersionUID = 1; } private void a1() { try { a1_1(); } catch (Ex1 si) { assert si != null; } } protected Object a1_1() throws Ex1 { return null; } private void a2() { try { a2_1(); } catch (Ex2 si) { assert si != null; } } protected Object a2_1() throws Ex2 { return null; } public final class Ex3 extends Exception { private static final long serialVersionUID = 1; } private void a3() { try { a3_1(); } catch (Ex3 si) { assert si != null; } } protected Object a3_1() throws Ex3 { return null; } } final class Ex2 extends Exception { private static final long serialVersionUID = 1; }
Actually it's broken in the 8th Feb build too.
Created attachment 18715 [details] Test case It still fails with latest.
Added GenericTypeTest#test637. Problem comes from parameterized type generated to represent static member of raw type. Fixed in latest.
Verified in I20050510-0010