I've use this method to retrieve the type of my generic, and no problem... until now
Now, I've got this kind of structure:
public class Toto<T> extends OtherOne<X,Y,Z> {...}`
and when I use the
((ParameterizedType)getClass().getGenericSuperclass()).getActualTypeArguments()[0];`
it's return me the type Class<X>
of my OtherOne class, not Class<T>
!
Has anyone ever encountered this problem? Whatever I've tried didn't work, and I don't want to use this solution of getting the class as an argument of my Constructor.