Community
Participate
Working Groups
With the code format preference "Insert New line before opening brace" selected when the following code is reformatted the brace after the static keyword is moved onto the same line as the keyword. eg: public class Foo { static { System.out.println("Hello world"); } } is reformatted to: public class Foo { static { System.out.println("Hello world"); } } The brace should have stayed on the next line.
This is a known defect and won't be fixed. The new formatter fixed it. It is available in the 3.0 stream.
This is a duplicate of bug 17349.
I noticed this same problem. I've just installed 3.0 M5 on an XP machine, and this is the first release of eclipse I have tried.
*** This bug has been marked as a duplicate of 17349 ***