author | sogoel |
Fri, 05 Sep 2014 16:43:00 -0700 | |
changeset 26528 | a1a7ad15183e |
parent 25308 | 190cac01c316 |
permissions | -rw-r--r-- |
10 | 1 |
/* |
25308
190cac01c316
8044236: create .out files for DefiniteAssignment tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
2 |
* @test /nodynamiccopyright/ |
10 | 3 |
* @bug 4717165 |
4 |
* @summary when can a statement complete normally? (break&continue versus finally) |
|
5 |
* @author Neal Gafter (gafter) |
|
6 |
* |
|
25308
190cac01c316
8044236: create .out files for DefiniteAssignment tests in tools/javac dir
sogoel
parents:
5520
diff
changeset
|
7 |
* @compile/fail/ref=T4717165.out -XDrawDiagnostics T4717165.java |
10 | 8 |
*/ |
9 |
||
10 |
class T4717165 { |
|
11 |
void f() { |
|
12 |
int i; |
|
13 |
a: try { |
|
14 |
break a; |
|
15 |
} finally { |
|
16 |
return; |
|
17 |
} |
|
18 |
i = 12; // unreachable |
|
19 |
} |
|
20 |
} |