Community
Participate
Working Groups
From the java language spec section 8.9: It is a compile-time error to reference a static field of an enum type that is not [final] from constructors [...]. The following compiles with the eclipse compiler, but not with javac: public enum Static { A(1),B(3); static int used = 0; final int pos; Static(int j) { pos = used += j; } }
*** This bug has been marked as a duplicate of 101713 ***