Community
Participate
Working Groups
Using 1112, the compiler doesn't report any error for the following test case: class A { void foo() { a: break; } } Javac 1.3 and 1.4.1 report: A.java:3: break outside switch or loop a: break; ^ 1 error
Note that the followings are still accepted: a: break a; while(true) a: break; // will break the while loop Fixed. Regression test addded (NegativeTest#test292)
Fixed
Verified.