If you are using my TypeTools library, this becomes pretty simple:
Class<?> t = TypeResolver.resolveRawArgument(Parent.class, Child.class);
If you are using my TypeTools library, this becomes pretty simple:
Class<?> t = TypeResolver.resolveRawArgument(Parent.class, Child.class);