langtools/test/tools/javac/failover/FailOver13.java
author duke
Wed, 05 Jul 2017 23:01:50 +0200
changeset 44228 e46434c65a2b
parent 40835 6ab9ed1abc46
permissions -rw-r--r--
Merge
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
 *
40835
6ab9ed1abc46 8162546: change hidden options -Xdebug to --debug, -XshouldStop to --should-stop, and -diags to --diags
vromero
parents: 39601
diff changeset
     7
 * @compile/fail/ref=FailOver13.out -XDrawDiagnostics --should-stop:at=FLOW -XDdev FailOver13.java
6594
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 extends Test {
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    11
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    12
    Integer x = 1;
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    13
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    14
    { x = (Object)o; }
d43f068fba19 6970584: Flow.java should be more error-friendly
mcimadamore
parents:
diff changeset
    15
}