langtools/test/tools/javac/DefiniteAssignment/T4721062b.java
author katleman
Thu, 21 Aug 2014 14:16:14 -0700
changeset 25878 6d561031123e
parent 25308 190cac01c316
permissions -rw-r--r--
Added tag jdk9-b27 for changeset 98ce0879ab4c

/*
 * @test /nodynamiccopyright/
 * @bug 4721062
 * @summary DA treatment of return statements in constructors
 * @author Neal Gafter (gafter)
 *
 * @compile/fail/ref=T4721062b.out -XDrawDiagnostics  T4721062b.java
 */

class T4721062b {
    final int i;
    T4721062b(boolean b) {
        if (b)
            return;
        i = 1;
    }
}