test/tools/javac/generics/GetClass.java

Print this page

        

*** 25,35 **** * @test * @bug 4919255 4982096 5004321 * @summary the type of x.getClass() is no longer Class<? extends X> * @author gafter * ! * @compile/fail -source 1.5 GetClass.java */ public class GetClass { public static void main(String[] args) { Class<? extends Class<GetClass>> x = GetClass.class.getClass(); --- 25,35 ---- * @test * @bug 4919255 4982096 5004321 * @summary the type of x.getClass() is no longer Class<? extends X> * @author gafter * ! * @compile/fail GetClass.java */ public class GetClass { public static void main(String[] args) { Class<? extends Class<GetClass>> x = GetClass.class.getClass();