This is straightforward using TypeTools (which I authored):
Class<?> typeArg = TypeResolver.resolveRawArgument(MyClass2.class, MyClass1.class);assert typeArg == MyClass3.class;
This is straightforward using TypeTools (which I authored):
Class<?> typeArg = TypeResolver.resolveRawArgument(MyClass2.class, MyClass1.class);assert typeArg == MyClass3.class;