Thu, 23 Oct 2008 18:29:11 +0100
6557954: Inner class type parameters doesn't get substituted when checking type well-formedness
Summary: Validator.visitTypeApply should substitute all formal typevars with actual parameters
Reviewed-by: jjg
1 /*
2 * @test /nodynamiccopyright/
3 * @bug 6437894
4 * @summary Javac throws a NullPointerException
5 * @author jan.lahoda@...
6 * @author Peter von der Ah\u00e9
7 * @compile A.java B.java
8 * @clean a.A
9 * @compile/fail/ref=T6437894.out -XDstdout -XDrawDiagnostics T6437894.java
10 */
12 public class T6437894 {
13 public static void main(String... args) {
14 b.B m;
15 a.A.X x = null;
16 Long.parseLong(x.toString());
17 }
18 }