addCandidateComponentsFromIndex should create ScannedGenericBeanDefinitions #24638
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Is there a special reason why
ClassPathScanningCandidateComponentProvider.addCandidateComponentsFromIndex
does createAnnotatedGenericBeanDefinition
s whilescanCandidateComponents
createsScannedGenericBeanDefinition
s?Without this
ScannedGenericBeanDefinition
s inConfigurationClassBeanDefinitionReader.isOverriddenByExistingDefinition
the bean definitions created from the index are treated different than the scanned bean definitions and overriding no longer works.The text was updated successfully, but these errors were encountered: