Community
Participate
Working Groups
Build ID: M20090211-1700 The following is legal Java code: public enum MyEnum { ; private int foo; } but the code formatter chokes. Interestingly, if the field declaration is commented out, the formatter works fine. Also, method declarations in the enum do not cause a problem, as long as there are no field declarations.
Created attachment 130716 [details] Proposed fix + regression tests
Released for 3.5M7. Regression tests added in: org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test720 org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test721
Verified for 3.5M7 using I20090426-2000