changeset 41640 | 0c5bdda9ac56 |
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/langtools/test/tools/javac/lambda/8168480/T8168480b.java Mon Oct 24 14:47:48 2016 +0100 @@ -0,0 +1,12 @@ +/* + * @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"); }; +}