langtools/test/tools/javac/6547131/T.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 10 06bc494ca11e
child 34754 025d0b180221
permissions -rw-r--r--
Initial load
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
10
06bc494ca11e Initial load
duke
parents:
diff changeset
     1
/**
06bc494ca11e Initial load
duke
parents:
diff changeset
     2
 * @test
06bc494ca11e Initial load
duke
parents:
diff changeset
     3
 * @bug     6547131
06bc494ca11e Initial load
duke
parents:
diff changeset
     4
 * @summary java.lang.ClassFormatError when using old collection API
06bc494ca11e Initial load
duke
parents:
diff changeset
     5
 * @compile T.java
06bc494ca11e Initial load
duke
parents:
diff changeset
     6
 * @run main T
06bc494ca11e Initial load
duke
parents:
diff changeset
     7
 */
06bc494ca11e Initial load
duke
parents:
diff changeset
     8
06bc494ca11e Initial load
duke
parents:
diff changeset
     9
import p.*;
06bc494ca11e Initial load
duke
parents:
diff changeset
    10
06bc494ca11e Initial load
duke
parents:
diff changeset
    11
class SubI implements Outer.I {
06bc494ca11e Initial load
duke
parents:
diff changeset
    12
    SubI() { }
06bc494ca11e Initial load
duke
parents:
diff changeset
    13
    Outer.I getI() { return this; }
06bc494ca11e Initial load
duke
parents:
diff changeset
    14
}
06bc494ca11e Initial load
duke
parents:
diff changeset
    15
06bc494ca11e Initial load
duke
parents:
diff changeset
    16
public class T {
06bc494ca11e Initial load
duke
parents:
diff changeset
    17
    public static void main(String argv[]){
06bc494ca11e Initial load
duke
parents:
diff changeset
    18
        SubI sub = new SubI();
06bc494ca11e Initial load
duke
parents:
diff changeset
    19
        Outer.I inter = (Outer.I)sub.getI();
06bc494ca11e Initial load
duke
parents:
diff changeset
    20
    }
06bc494ca11e Initial load
duke
parents:
diff changeset
    21
}