java-topology/test/langtools/tools/javac/recovery/T8337976.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

10 lines
340 B
Java

/**
* @test /nodynamiccopyright/
* @bug 8337976
* @summary Verify javac does not crash and produces nice errors for certain erroneous code.
* @compile/fail/ref=T8337976.out -XDrawDiagnostics -XDshould-stop.at=FLOW -XDdev T8337976.java
*/
public class T8337976 {
switch (0) { default: undefined u;}
if (true) { undefined u; }
}