1/* 2 * @test /nodynamiccopyright/ 3 * @bug 4394546 4 * @summary get no err msg if label wrapped in parentheses 5 * @author gafter 6 * 7 * @compile/fail/ref=Parens3.out -XDrawDiagnostics Parens3.java 8 */ 9 10class Parens3 { 11 void f() { 12 (foo): ; 13 } 14} 15