Given a class hierarchy where the base class defines a recursive self-type:
abstract class A> { }
How can I decl
If you bound the wildcard ? below by A, it should work:
?
A
public class B { private A<? extends A> a; public <T extends A<T>> void setA(T a) { this.a = a; } }