author | sogoel |
Wed, 02 Jul 2014 12:04:04 -0700 | |
changeset 25308 | 190cac01c316 |
parent 5520 | 86e4b9a9da40 |
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 4721062 |
4 |
* @summary DA treatment of return statements in constructors |
|
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=T4721062b.out -XDrawDiagnostics T4721062b.java |
10 | 8 |
*/ |
9 |
||
10 |
class T4721062b { |
|
11 |
final int i; |
|
12 |
T4721062b(boolean b) { |
|
13 |
if (b) |
|
14 |
return; |
|
15 |
i = 1; |
|
16 |
} |
|
17 |
} |