Community
Participate
Working Groups
Using N0622, the code formatter fails to format the following code. public class X { public static void main(String[] args) { if(true) throw new RuntimeException("X"); X: System.out.println("X"); } }
Created attachment 23729 [details] Proposed fix Apply on HEAD
Created attachment 23730 [details] Corresponding regression test
Good candidate for 3.1.1
*** Bug 101616 has been marked as a duplicate of this bug. ***
Fixed and released in 3.1 maintenance stream. Regression test added in org.eclipse.jdt.core.tests.formatter.FormatterRegressionTests.test588
*** Bug 103005 has been marked as a duplicate of this bug. ***
Verified with 3.2 M1
Verified for 3.1.1 using build M20050923-1430.
Verified.