jdk-24/test/langtools/tools/javac/enum/forwardRef/T6425594.java

14 lines
357 B
Java
Raw Normal View History

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