Community
Participate
Working Groups
Using HEAD, the following code doesn't compile. The parser is losing the Exception type parameters for the M type. public class X { public static void main(String argv[]) { new X().new M<Exception>(null) { void run() { Exception e = ex; System.out.println("SUCCESS"); } }.run(); } class M<E extends Throwable> { E ex; M(E ex) { this.ex = ex; } } }
Fixed and released in HEAD. Regression test added in GenericTypeTest.test512.
Verified in 20050330-0500