langtools/test/tools/javac/failover/FailOver04.java
author mcimadamore
Tue, 07 Sep 2010 17:33:43 +0100
changeset 6594 d43f068fba19
child 39601 5b37e511ae4b
permissions -rw-r--r--
6970584: Flow.java should be more error-friendly Summary: Added a post-attribution visitor that fixup uninitialized types/symbol in AST after erroneous attribution Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6594
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     1
/*
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     2
 * @test /nodynamiccopyright/
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     3
 * @bug 6970584
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     4
 * @summary Flow.java should be more error-friendly
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     5
 * @author mcimadamore
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     6
 *
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     7
 * @compile/fail/ref=FailOver04.out -XDrawDiagnostics -XDshouldStopPolicy=FLOW -XDdev FailOver04.java
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     8
 */
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
     9
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    10
class Test {
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    11
   { new Unknown() {}; }
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    12
}