This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
This simple enum, although strange, is valid. In fact, this is something I get from after formatting in some jdeveloper versions. It compiles fine but breaks on reformatting: public enum X { A, B, ; private String a; private Class b; private X(String c) { } } Is reformatted as this (invalid, not compilable) code: public enum x { A, B, ; private String a; private Classb ; private x(String c) { } }
(note the Classb instead of Class b)
This works fine in current daily build, it was probably fixed with issue 121255. Thanks for your report. *** This issue has been marked as a duplicate of 121255 ***