Maurizio Cimadamore d072e7faa4 8168480: Speculative attribution of lambda causes NPE in Flow
Flow attempts to analyze too much of a lambda body during attribution

Reviewed-by: vromero
2016-10-24 14:47:48 +01:00

13 lines
332 B
Java

/*
* @test /nodynamiccopyright/
* @bug 8168480
* @summary Speculative attribution of lambda causes NPE in Flow
* @compile/fail/ref=T8168480b.out -XDrawDiagnostics T8168480b.java
*/
import java.util.function.Supplier;
class T8168480b {
Supplier<Runnable> ssr = () -> () -> { while (true); System.err.println("Hello"); };
}