Java doesn’t permit that. You must specify covariant or contravariant type parameters with <? extends T> or <? super T>.