Avoid double proxying for @Resource
@Lazy
fallback autowiring
#31447
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
The
@Lazy
support for@Resource
injection points (as implemented inCommonAnnotationBeanPostProcessor
) can lead to double proxying in case of fallback autowiring when no bean of the given name could be found, sinceDefaultListableBeanFactory.resolveDependency
performs its own lazy proxy resolution in such a scenario. Addressing this through a refactored resolution algorithm also aligns with our upcoming AOT support for@Resource
(#29614).The text was updated successfully, but these errors were encountered: