Bug 126191

Summary: Code formatter doesn't format properly empty enums
Product: [Eclipse Project] JDT Reporter: Olivier Thomann <Olivier_Thomann>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: 3.2   
Target Milestone: 3.2 M5   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Olivier Thomann CLA 2006-02-02 10:06:37 EST
Using latest, try to format the following enum with the option to insert a new line in empty enum declaration disabled.
enum E {}

you end up with:
enum E {
}

instead of:
enum E {}
Comment 1 Olivier Thomann CLA 2006-02-02 10:08:06 EST
Fixed and released in HEAD.
Regression tests are existing tests in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests: test523 and test525.
Comment 2 Olivier Thomann CLA 2006-02-02 11:26:37 EST
Backported to 3.1.x.
Same regression tests are now working.
Comment 3 David Audel CLA 2006-02-15 09:23:08 EST
Verified for 3.2 M5 using build I20060215-0010