Community
Participate
Working Groups
Steps to reproduce: 1. Make a new class in default package: -----BEGIN----- public class FormatterTest { void doTest( ) { System.out.println("(" + Object.class + ")"); } } -----END----- 2. Try to format it by Ctrl+Shift+F - nothing happens 3. Now change the 'Object.class' to 'Object.class.toString()' (You can also delete the last ' + ")"' 4. Try to format it by Ctrl+Shift+F - everything is ok It seems that formatter crashes, when it has some string operatation (like + ) after the keyword class
NotE: there's a separate PR that the editor should not fail silenty (bug 70037).
Reproduced. I am investigating.
Fixed and released in HEAD. Regression test added in FormatterRegressionTests.test543.
Thanks for the nice test case.
Verified with 3.1 M5 candidate (I20040215-2300)
*** Bug 66452 has been marked as a duplicate of this bug. ***