2020-06-17 13:18:19 +02:00
|
|
|
/*
|
|
|
|
* @test /nodynamiccopyright/
|
|
|
|
* @bug 8238735
|
|
|
|
* @summary javac should fail without throwing NPE
|
|
|
|
* @compile/fail/ref=T8238735.out -XDrawDiagnostics T8238735.java
|
|
|
|
*/
|
|
|
|
|
|
|
|
class T8238735 {
|
2023-01-17 04:43:40 +00:00
|
|
|
public static void meth() {
|
2020-06-17 13:18:19 +02:00
|
|
|
boolean first = true;
|
|
|
|
first = first ? false : (boolean)(() -> false) ;
|
|
|
|
}
|
|
|
|
}
|