Community
Participate
Working Groups
Since the latest update I got a compiler error whereas I didn't get one in 3.4.1 Eclipse complains about the usage of an static field declared in an enum in the constructor of an enum instance. look at the following code: public class Demo { public static class CLAZZ { public static CLAZZ demo = new CLAZZ(CLAZZ.test); public CLAZZ(String string) { myString = string; } public static String test = "test"; final String myString; } public static enum ENUM { TEST1(ENUM.test); private ENUM(String string) { myString = string; } public static String test = "test"; final String myString; } } The CLAZZ doesn't show the error, where the ENUM tells me about the error on the declaration of the sole instance. My javac dosen't bother about this class and so should the eclipse compiler...
*** This bug has been marked as a duplicate of bug 263877 ***
Verified for 3.5M6 using I20090310-0100.