The following program compiles withoug complaint from javac, even though the
final static variable b is being used before set by another static initializer.
When the comment is removed, the compiler correctly diagnoses the problem.
class Pos {
/*................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*/ static final int a = b;
static final int b = Integer.parseInt("23");
int x = a + b;
}