1 /* 2 * @test /nodynamiccopyright/ 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 DefAssignAfterThis_2()18 DefAssignAfterThis_2() { 19 this(0); 20 // 'x' should be definitely assigned here 21 } 22 DefAssignAfterThis_2(int i)23 DefAssignAfterThis_2(int i) { 24 x = 1; 25 } 26 } 27