test/tools/javac/generics/SelfImplement.java

Print this page

        

*** 25,35 **** * @test * @bug 4725668 * @summary generics: reject implementation with incorrect return type * @author gafter * ! * @compile/fail -source 1.5 SelfImplement.java */ class SelfImplement { static abstract class A<T> { abstract void f(T t); --- 25,35 ---- * @test * @bug 4725668 * @summary generics: reject implementation with incorrect return type * @author gafter * ! * @compile/fail SelfImplement.java */ class SelfImplement { static abstract class A<T> { abstract void f(T t);