Bug 284679

Summary: [formatter] empty single semi statement prevent enum elements format
Product: [Eclipse Project] JDT Reporter: Xiang Qinxian <fyaoxy>
Component: CoreAssignee: Olivier Thomann <Olivier_Thomann>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: P3 CC: markus.kell.r, Olivier_Thomann, srikanth_sankaran
Version: 3.5   
Target Milestone: 3.6 M1   
Hardware: PC   
OS: Windows Vista   
Whiteboard:

Description Xiang Qinxian CLA 2009-07-26 13:10:58 EDT
Build ID: Build id: I20090611-1540

Steps To Reproduce:
1. write code like this:
pubic enum TestEnum{
A,
B;
;
}
In this case, formatter not work. remove that last single semi, ok.
Is this a new feature?
if remove

More information:
Comment 1 Olivier Thomann CLA 2009-07-27 13:12:32 EDT
This should be a trivial change.
Comment 2 Olivier Thomann CLA 2009-07-27 14:16:55 EDT
Markus,

Do you want this one to be backported to 3.5.1?
The workaround is trivial. The extra semi-colon just needs to be removed.
Comment 3 Olivier Thomann CLA 2009-07-27 14:19:07 EDT
Released for 3.6M1.
Regression test added in:
org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test723
Comment 4 Markus Keller CLA 2009-07-28 05:24:19 EDT
> Markus, Do you want this one to be backported to 3.5.1?

No, it's not severe and there's a trivial workaround.

Comment 5 Satyam Kandula CLA 2009-08-04 11:18:59 EDT
Verified for 3.6M1 using build I20090803-1300