Bug 126191 - Code formatter doesn't format properly empty enums
Summary: Code formatter doesn't format properly empty enums
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.2 M5   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-02 10:06 EST by Olivier Thomann CLA
Modified: 2006-02-15 09:23 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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