Why does the following does not work?
Vector<? extends SomeClass> v = new Vector<SomeClass>();
SomeClass e = new SomeClass();
v.add(e);
I get a compilation error that:
The method add(capture#1-of ? extends SomeClass) in the type Vector is not applicable for the arguments (SomeClass)