I have a generic class, says :
MyClass
Inside a method of this class, I would like to test the type of T, for example :
As it was already stated you can get only generics-related information available at the static byte code level.
It's possible to resolve type arguments values and check if one type may be used in place of another then.