I must admit, I don't get this error:
public <S extends A> Class<S> foo(){
return A.class;
}
Will result in a "incompatible types"-error.
Expected: Class<S>
Found: Class<A>
What am I doing wrong?
I must admit, I don't get this error:
public <S extends A> Class<S> foo(){
return A.class;
}
Will result in a "incompatible types"-error.
Expected: Class<S>
Found: Class<A>
What am I doing wrong?