Use available type information in functional bean definitions for resolving FactoryBean type [SPR-17063] #21601
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Dave Syer opened SPR-17063 and commented
I encountered a nasty problem with some functional bean registrations, caused by early an instantiation cascade driven from a
BeanFactoryPostProcessor
in Spring Data. The issue comes back to the BFPP wanting to find bean definitions of a certain type, so it usesBeanFactory.getType(String)
, which could have used theResolvableType
information that was available for the functional bean definition, but didn't and fell back to instantiating the bean to check its runtime concrete type. The offending code is inAbstractBeanFactory
.Issue Links:
Referenced from: commits 52d124d
The text was updated successfully, but these errors were encountered: