author | hseigel |
Wed, 02 Mar 2016 23:48:41 +0000 | |
changeset 36397 | c487ced7231c |
parent 27856 | d4711a6931e2 |
permissions | -rw-r--r-- |
27856
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
1 |
/* |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
3 |
* @bug 8065986 |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
4 |
* |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
5 |
* @summary Compiler fails to NullPointerException when calling super with Object<>() |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
6 |
* @compile/fail/ref=T8065986a.out T8065986a.java -XDrawDiagnostics |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
7 |
* |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
8 |
*/ |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
9 |
import java.util.ArrayList; |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
10 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
11 |
class T8065986a { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
12 |
T8065986a() { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
13 |
super(new Object<>()); |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
14 |
} |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
15 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
16 |
T8065986a(boolean b) { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
17 |
super(new ArrayList<>()); |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
18 |
} |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
19 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
20 |
T8065986a(boolean b1, boolean b2) { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
21 |
super(()->{}); |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
22 |
} |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
23 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
24 |
T8065986a(boolean b1, boolean b2, boolean b3) { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
25 |
super(T8065986a::m); |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
26 |
} |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
27 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
28 |
T8065986a(boolean cond, Object o1, Object o2) { |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
29 |
super(cond ? o1 : o2); |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
30 |
} |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
31 |
|
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
32 |
static void m() { } |
d4711a6931e2
8065986: Compiler fails to NullPointerException when calling super with Object<>()
mcimadamore
parents:
diff
changeset
|
33 |
} |