0

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?

User1291
  • 6,823
  • 6
  • 45
  • 90

0 Answers0