equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * @test /nodynamiccopyright/ |
2 * @test /nodynamiccopyright/ |
3 * @bug 8065986 |
3 * @bug 8065986 8062373 |
4 * |
4 * |
5 * @summary Compiler fails to NullPointerException when calling super with Object<>() |
5 * @summary Compiler fails to NullPointerException when calling super with Object<>() |
6 * @compile/fail/ref=T8065986b.out T8065986b.java -XDrawDiagnostics |
6 * @compile/fail/ref=T8065986b.out T8065986b.java -XDrawDiagnostics |
7 * |
7 * |
8 */ |
8 */ |
27 |
27 |
28 T8065986b(boolean cond, Object o1, Object o2) { |
28 T8065986b(boolean cond, Object o1, Object o2) { |
29 this(cond ? o1 : o2); |
29 this(cond ? o1 : o2); |
30 } |
30 } |
31 |
31 |
|
32 T8065986b(int x) { |
|
33 this(new Object<>() {}); |
|
34 } |
|
35 |
|
36 T8065986b(int x, int y) { |
|
37 this(new ArrayList<>() {}); |
|
38 } |
32 static void m() { } |
39 static void m() { } |
33 } |
40 } |