langtools/test/tools/javac/NestedDuplicateLabels.java
author mchung
Wed, 27 May 2015 13:25:18 -0700
changeset 30846 2b3f379840f0
parent 26529 10ec5e52bf75
permissions -rw-r--r--
8074432: Move jdeps and javap to jdk.jdeps module Reviewed-by: jjg, alanb, erikj

/*
 * @test /nodynamiccopyright/
 * @bug 1241001
 * @summary The compiler failed to detect duplicate, nested labels.
 * @author turnidge
 *
 * @compile/fail/ref=NestedDuplicateLabels.out -XDrawDiagnostics  NestedDuplicateLabels.java
 */

class NestedDuplicateLabels {
    void method() {
    foo: { { foo: {} } }
    }
}