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

Bean with unresolved generics do not use fallback algorithms with AOT #29454

Closed
snicoll opened this issue Nov 9, 2022 · 0 comments
Closed

Bean with unresolved generics do not use fallback algorithms with AOT #29454

snicoll opened this issue Nov 9, 2022 · 0 comments
Assignees
Labels
in: core Issues in core modules (aop, beans, core, context, expression) theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Milestone

Comments

@snicoll
Copy link
Member

snicoll commented Nov 9, 2022

See spring-attic/spring-native#1097

If a bean has an unresolved generic, AOT generates Object, rather than conveying the unresolved generic. As a result, trying to inject the bean with a resolved generic does not work. This typically affects template-based beans where any type is supported, but AOT locks down things on Object.

@snicoll snicoll added type: bug A general bug theme: aot An issue related to Ahead-of-time processing labels Nov 9, 2022
@snicoll snicoll added this to the 6.0.0-RC4 milestone Nov 9, 2022
@jhoeller jhoeller added the in: core Issues in core modules (aop, beans, core, context, expression) label Nov 9, 2022
@snicoll snicoll closed this as completed in da4b539 Nov 9, 2022
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) theme: aot An issue related to Ahead-of-time processing type: bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants