1/* 2 * @test /nodynamiccopyright/ 3 * @bug 1241001 4 * @summary The compiler failed to detect duplicate, nested labels. 5 * @author turnidge 6 * 7 * @compile/fail/ref=NestedDuplicateLabels.out -XDrawDiagnostics NestedDuplicateLabels.java 8 */ 9 10class NestedDuplicateLabels { 11 void method() { 12 foo: { { foo: {} } } 13 } 14} 15