java-topology/test/langtools/tools/javac/enum/forwardRef/T6425594.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

13 lines
353 B
Java

/*
* @test /nodynamiccopyright/
* @bug 6424491
* @summary javac accepts illegal forward references
* @author Peter von der Ahé
* @compile/fail/ref=T6425594.out -XDrawDiagnostics -XDuseBeforeDeclarationWarning T6425594.java
*/
public class T6425594 {
static int x = T6425594.x;
static final int y = z;
static final int z = 0;
}