Skip to content

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

@snicoll

Description

@snicoll

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.

Metadata

Metadata

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)theme: aotAn issue related to Ahead-of-time processingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions