Community
Participate
Working Groups
When changing the default code formatter, Eclipse doesn't behave as expected. When using the eclipse built-in formatting profile, classes or methods with an annotation are formatted as follows: @Annot(x = 23, y = -3) public class A { } Changing settings for the brace positions (classes or method declarations) to "Next line on wrap" results in the following formatting: @Annot(x = 23, y = -3) public class A { } This behaviour is wrong, since there is absolutely no need to position in the next line.
The description of the error is not entirely correct: Changing settings for the brace positions (classes) to "Next line on wrap" results in the following formatting: @Annot(x = 23, y = -3) public class A { } Changing settings for the brace positions (methods declaration) to "Next line on wrap" results in the following formatting: @Override public void doSomething() { // do Something }
Released for 3.3M3. Regression tests added in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests#test627/628/629
Verified for 3.3 M3 using build I20061030-0010