Refine ResolvableType
type variable resolution
#33887
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
While exploring using
ResolvableType
in Spring AI with @tzolov and Spring Cloud Function with @olegz, we figured out that the type variable algorithm is not working as expected in all use cases.This gist illustrates various use cases where either:
GenericTypeResolver#resolveType(Type, Class<?>)
is required for thegetGeneric(0)
use case, and most users missGenericTypeResolver
that is not easily discoverable.The purpose of this issue is to refine the type resolver to cover the broken use cases, and to explore if that would make sense or not to provide
GenericTypeResolver#resolveType(Type, Class<?>)
capabilities as part ofResolvableType
.The text was updated successfully, but these errors were encountered: