2007-12-01 00:00:00 +00:00
|
|
|
/*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @test /nodynamiccopyright/
|
2007-12-01 00:00:00 +00:00
|
|
|
* @bug 4717165
|
|
|
|
* @summary when can a statement complete normally? (break&continue versus finally)
|
|
|
|
* @author Neal Gafter (gafter)
|
|
|
|
*
|
2014-07-02 19:04:04 +00:00
|
|
|
* @compile/fail/ref=T4717165.out -XDrawDiagnostics T4717165.java
|
2007-12-01 00:00:00 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
class T4717165 {
|
|
|
|
void f() {
|
|
|
|
int i;
|
|
|
|
a: try {
|
|
|
|
break a;
|
|
|
|
} finally {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
i = 12; // unreachable
|
|
|
|
}
|
|
|
|
}
|