java-topology/test/langtools/tools/javac/lambda/8168480/T8168480b.java
russell@unturf.com 0a580b313d undefect. CWE-407 — 63 sites patched across 27 ecosystems
Authors: russell@unturf.com · brackishbert@gmail.com · foxhop.net · TimeHexOn.com

Patches, unit tests, benchmarks, whitepaper, and outreach briefs.
Public domain — no copyright claimed. Use freely.
2026-03-26 17:11:57 -04:00

12 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"); };
}