Community
Participate
Working Groups
For example: int[] a = new int[][] {{1}}; is formatted as: int[] a = new int[][] { {1}}; even when no such formatting preference has been set. Confirmed in Eclipse 3.1M5a, 3.1M6.
Created attachment 19520 [details] Formatter preferences
The problem comes from the fact that the option to insert a space before the opening brace in the array initializer is colliding with the option that inserts a space after opening brace in array initializer. They collide for the inner array initializer.
Fixed and released in HEAD. Regression tests added in FormatterRegressionTests.test572/573.
That was quick. Thank you.
Let me know if you find any problems once you use a build that contains this fix.
Verified for 3.1 M7 using build I20050512-2035 + jdt.core HEAD.