DefaultListableBeanFactory#getBeanNamesForType
does not take target type into account for FactoryBean
resolution
#30987
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: enhancement
A general enhancement
Milestone
Given a
RootBeanDefinition
for aFactoryBean
that exposes a generic for the bean that it produces (typically Spring Data repositories infrastructure):A call to
getBeanNamesForType
withCityRepository.class
does not return the bean definition. It looks like the target type is not taken into account to resolve theFactoryBean
's generic type, if available.Failing test case at: snicoll@edb8a05
The text was updated successfully, but these errors were encountered: