-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Open
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement
Milestone
Description
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:
- Type resolution does not happen despite the information provided beeing enough to resolve them
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 of ResolvableType
.
ferblaca
Metadata
Metadata
Assignees
Labels
in: coreIssues in core modules (aop, beans, core, context, expression)Issues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancementA general enhancement