test/tools/javac/generics/TyparamLit.java

Print this page

        

*** 25,35 **** * @test * @bug 4881265 * @summary generics: compiler allows T.class for type variable T * @author gafter * ! * @compile/fail -source 1.5 TyparamLit.java */ class TyparamLit<T> { Class x = T.class; } --- 25,35 ---- * @test * @bug 4881265 * @summary generics: compiler allows T.class for type variable T * @author gafter * ! * @compile/fail TyparamLit.java */ class TyparamLit<T> { Class x = T.class; }