test/tools/javac/generics/UncheckedCovariance.java

Print this page

        

*** 25,36 **** * @test * @bug 4949303 * @summary A method returning a raw type cannot override a method returning a generic type * @author gafter * ! * @compile -source 1.5 UncheckedCovariance.java ! * @compile/fail -Xlint:unchecked -Werror -source 1.5 UncheckedCovariance.java */ class UncheckedCovariance { static class Box<T> { } static class A { --- 25,36 ---- * @test * @bug 4949303 * @summary A method returning a raw type cannot override a method returning a generic type * @author gafter * ! * @compile UncheckedCovariance.java ! * @compile/fail -Xlint:unchecked -Werror UncheckedCovariance.java */ class UncheckedCovariance { static class Box<T> { } static class A {