test/tools/javac/generics/wildcards/neg/Readonly.java

Print this page

        

*** 25,35 **** * @test * @bug 4916607 4931647 * @summary an extends-bound (covariant) wildcard is like readonly * @author gafter * ! * @compile/fail -source 1.5 Readonly.java */ class Err<T> { Err<T> get() { return null; } void put(Err<T> t) {} --- 25,35 ---- * @test * @bug 4916607 4931647 * @summary an extends-bound (covariant) wildcard is like readonly * @author gafter * ! * @compile/fail Readonly.java */ class Err<T> { Err<T> get() { return null; } void put(Err<T> t) {}