Given you have the following classes:
interface GenericInterface<T> {
default List<T> returnGenericList() {
return List.of();
}
}
// Note: T isn't the same as in GenericInterface
interface Service<T> extends GenericInterface<String> {
class Impl implements Service<Long> {
}
}
Resolve the generic return type of Impl.returnGenericList
via reflection.
Expected result: java.util.List<String>