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 4087865 |
4 |
* @summary Verify definite assignment of blank finals after 'this(...)' |
|
5 |
* @author William Maddox (maddox) |
|
6 |
* |
|
7 |
* @compile DefAssignAfterThis_2.java |
|
8 |
*/ |
|
9 |
||
10 |
/* |
|
11 |
* This program should compile without errors. |
|
12 |
*/ |
|
13 |
||
14 |
public class DefAssignAfterThis_2 { |
|
15 |
||
16 |
final int x; |
|
17 |
||
18 |
DefAssignAfterThis_2() { |
|
19 |
this(0); |
|
20 |
// 'x' should be definitely assigned here |
|
21 |
} |
|
22 |
||
23 |
DefAssignAfterThis_2(int i) { |
|
24 |
x = 1; |
|
25 |
} |
|
26 |
} |