2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 1241001
|
|
|
|
* @summary The compiler failed to detect duplicate, nested labels.
|
|
|
|
* @author turnidge
|
|
|
|
*
|
2014-09-05 23:51:39 +00:00
|
|
|
* @compile/fail/ref=NestedDuplicateLabels.out -XDrawDiagnostics NestedDuplicateLabels.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class NestedDuplicateLabels {
|
|
|
|
void method() {
|
|
|
|
foo: { { foo: {} } }
|
|
|
|
}
|
|
|
|
}
|