Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refine ResolvableType type variable resolution #33887

Open
sdeleuze opened this issue Nov 14, 2024 · 0 comments
Open

Refine ResolvableType type variable resolution #33887

sdeleuze opened this issue Nov 14, 2024 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Milestone

Comments

@sdeleuze
Copy link
Contributor

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 the getGeneric(0) use case, and most users miss GenericTypeResolver 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.

@sdeleuze sdeleuze added in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement labels Nov 14, 2024
@sdeleuze sdeleuze added this to the 7.0.x milestone Nov 14, 2024
@sdeleuze sdeleuze self-assigned this Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Issues in core modules (aop, beans, core, context, expression) type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant