2007-12-01 00:00:00 +00:00
|
|
|
/**
|
|
|
|
* @test
|
|
|
|
* @bug 6547131
|
|
|
|
* @summary java.lang.ClassFormatError when using old collection API
|
2015-12-15 18:54:53 -08:00
|
|
|
* @compile p/Outer.jasm p/Outer$I.jasm T.java
|
2007-12-01 00:00:00 +00:00
|
|
|
* @run main T
|
|
|
|
*/
|
|
|
|
|
|
|
|
import p.*;
|
|
|
|
|
|
|
|
class SubI implements Outer.I {
|
|
|
|
SubI() { }
|
|
|
|
Outer.I getI() { return this; }
|
|
|
|
}
|
|
|
|
|
|
|
|
public class T {
|
|
|
|
public static void main(String argv[]){
|
|
|
|
SubI sub = new SubI();
|
|
|
|
Outer.I inter = (Outer.I)sub.getI();
|
|
|
|
}
|
|
|
|
}
|