Document the difference in generics resolution between @Autowired
and beanFactory.getBeanProvider
#27727
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: documentation
A documentation task
Milestone
See the sample project for code example: https://github.com/snicoll-scratches/demo-unresolved-type-fallback
If a bean is defined with an unresolved generic such as
NumberHolder<?>
and the injection point is defined asNumberHolder<Integer>
,@Autowired
is able to inject the bean whereas agetIfAvailable
call ongetBeanProvider
returnsnull
.It looks like an inconsistency in the dependency resolution algorithm.
The text was updated successfully, but these errors were encountered: