Bug 284679 - [formatter] empty single semi statement prevent enum elements format
Summary: [formatter] empty single semi statement prevent enum elements format
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.5   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: 3.6 M1   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-26 13:10 EDT by Xiang Qinxian CLA
Modified: 2009-08-05 01:21 EDT (History)
3 users (show)

See Also:


Attachments

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