8057652: Request to improve error messages for labeled declarations
Summary: Parse labeled statements as block statements to improve error recovery for labeled declarations; related cleanup.
Reviewed-by: jjg
package p1;
import p2.*;
public class String {
public static void test() { }
}
class Test1 {
private void test() {
String.test();
Object.test();
Boolean.valueOf(true);
}
}