author | mcimadamore |
Wed, 26 Oct 2016 15:41:25 +0100 | |
changeset 41856 | 13a056e8f16e |
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 4718708 |
4 |
* @summary bug in DU analysis of while loop |
|
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=T4718708.out -XDrawDiagnostics T4718708.java |
10 | 8 |
*/ |
9 |
||
10 |
class T4718708 { |
|
11 |
void f() { |
|
12 |
final int i; |
|
13 |
while (true) { |
|
14 |
i = 3; |
|
15 |
continue; |
|
16 |
} |
|
17 |
} |
|
18 |
} |