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.
Build 200410311900 Test case: public class Test { public enum Colors { RED, GREEN, BLUE } } after reformat: public class Test { public enum Colors { RED, GREEN, BLUE } }
I believe it's a regression introduced by the fix for the issue 6065, thus P2.
Looks like I've chosen a wrong component, reasigning to editor.
Verified, it's a reproducible defect, although not a regression against 3.6, as there was no support for enums. As a workaround, you can switch it off by Options->Editing->Indentation Engines->Java Indentation Engine set Statement Continuation Indent=0 Downgrading it to P3, using rules http://qa.netbeans.org/processes/bug_priority_guidelines.html
I meant it's a regression against earlier 4.0 builds.
Fixed in [maintrunk]. Checking in libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java; /cvs/editor/libsrc/org/netbeans/editor/ext/java/JavaFormatSupport.java,v <-- JavaFormatSupport.java new revision: 1.37; previous revision: 1.36 done Tests added. Checking in test/unit/src/org/netbeans/modules/editor/java/JavaFormatterUnitTest.java; /cvs/editor/test/unit/src/org/netbeans/modules/editor/java/JavaFormatterUnitTest.java,v <-- JavaFormatterUnitTest.java new revision: 1.5; previous revision: 1.4 done
Verified in 200411231900.