langtools/test/tools/javac/6734819/T6734819c.java
author sogoel
Thu, 05 Jun 2014 10:57:10 -0700
changeset 24797 850ebd4d80a7
parent 3766 7e2df99e9223
permissions -rw-r--r--
8044072: Group 2: create .out files for OverrideChecks tests in tools/javac dir Reviewed-by: jjg
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1046
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     1
/*
3766
7e2df99e9223 6875336: some tests should use /nodynamiccopyright/
jjg
parents: 1046
diff changeset
     2
 * @test /nodynamiccopyright/
1046
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     3
 * @bug 6734819
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     4
 * @summary Javac performs flows analysis on already translated classes
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     5
 * @author Maurizio Cimadamore
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     6
 *
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     7
 * @compile/fail/ref=T6734819c.out -XDrawDiagnostics -Xlint:all -XDverboseCompilePolicy T6734819c.java
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     8
 */
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
     9
class Y extends W {}
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    10
class W extends Z {}
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    11
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    12
class Z {
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    13
    void m(Z z) {
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    14
        return;
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    15
        W w = (W)z;
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    16
    }
e395ce284cbf 6734819: Javac performs flows analysis on already translated classes
mcimadamore
parents:
diff changeset
    17
}