I need to call a super constructor that requires me to pass a .class reference of a generic type. How can I achieve this with Java?
The constructor wants to have..
Class<List<MyType>>
As generics are erased at runtime, I have no clue how to satisfy the constructor.
List<MyType>.class // does not work ;-)
Like this (cast to the
Classraw type first):