Community
Participate
Working Groups
Using 3.0M6, the old formatter will misindent the following code: class Foo { class Bar { } void foo() { Bar obj = new Bar() { public void bar() { // Here is the problem. return; } }; } } Here's the result after formatting: class Foo { class Bar { } void foo() { Bar obj = new Bar() { public void bar() { // Here is the problem. return; } }; } } This bug only occurs if that innermost block starts with a // single-line comment. If a /* block comment */ is used, it indents correctly. If no comment appears, it also indents correctly.
The old formatter won't be maintained. I will check that the new formatter has not the same bug.
Verified that the new formatter is handling this code fine. Close as WONTFIX.