1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
/*
* @test /nodynamiccopyright/
* @bug 8065986
*
* @summary Compiler fails to NullPointerException when calling super with Object<>()
* @compile/fail/ref=T8065986a.out T8065986a.java -XDrawDiagnostics
*
*/
import java.util.ArrayList;
class T8065986a {
T8065986a() {
super(new Object<>());
}
T8065986a(boolean b) {
super(new ArrayList<>());
}
T8065986a(boolean b1, boolean b2) {
super(()->{});
}
T8065986a(boolean b1, boolean b2, boolean b3) {
super(T8065986a::m);
}
T8065986a(boolean cond, Object o1, Object o2) {
super(cond ? o1 : o2);
}
static void m() { }
}
|