Community
Participate
Working Groups
When you have a project in Eclipse that uses Java SE 6 beta 2, the code formatter does nothing if you try to format an enum automatically. The source code is not formatted, it just doesn't change the source code at all. It works normally if I change the project to use JDK 1.5.0_07.
Problem is more serious than that. When compliance is set to 6.0 (it's not a JRE issue), then formatter is not able to format 1.5 code...
Created attachment 47402 [details] Proposed patch Add test FormatterRegressionTests#test626
Released for 3.3 M1 in HEAD. Olivier, please review the fix and decide whether if should but put in R3_2_maintenance stream...
Verified for 3.3 M1 using build I20060807-0010
The fix looks good and should definitely be backported to 3.2 maintenance stream.
Backported to 3.2 maintenance branch. Released for 3.2.1. Added regression test org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test622
I removed the fix from the 3.2.1 branch since it requires approval from Philippe first. Philippe, I'll attach the patch to be applied on 3.2 maintenance branch.
Created attachment 47926 [details] Proposed fix for 3.2 maintenance branch
Created attachment 47927 [details] Regression tests for 3.2 maintenance branch
+1 for 3.2.1
Released for 3.2.1. Added regression test org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test622.
Verified for 3.2.1 using build M20060908-1655