T8168480b.java revision 3722:aacff1ac75a2
1/* 2 * @test /nodynamiccopyright/ 3 * @bug 8168480 4 * @summary Speculative attribution of lambda causes NPE in Flow 5 * @compile/fail/ref=T8168480b.out -XDrawDiagnostics T8168480b.java 6 */ 7 8import java.util.function.Supplier; 9 10class T8168480b { 11 Supplier<Runnable> ssr = () -> () -> { while (true); System.err.println("Hello"); }; 12} 13