Here's a sample case:
interface Base<T> {
T getT();
}
abstract class Derived implements Base<String> {
}
I want a runtime API to resolve the type of getT in Derived class as String.
In other words, something like TypeParameterResolver#resolveReturnType from mybatis https://github.com/mybatis/mybatis-3/blob/4b72ae4ffbf1029162233d3eb77c2f0b891c24fa/src/main/java/org/apache/ibatis/reflection/TypeParameterResolver.java#L50-L59, however, mybatis does not consider TypeParameterResolver its API.
WDYT?
Here's a sample case:
I want a runtime API to resolve the type of
getTinDerivedclass asString.In other words, something like
TypeParameterResolver#resolveReturnTypefrom mybatis https://github.com/mybatis/mybatis-3/blob/4b72ae4ffbf1029162233d3eb77c2f0b891c24fa/src/main/java/org/apache/ibatis/reflection/TypeParameterResolver.java#L50-L59, however, mybatis does not considerTypeParameterResolverits API.WDYT?