Skip to content

addCandidateComponentsFromIndex should create ScannedGenericBeanDefinitions #24638

@abenneke

Description

@abenneke

Is there a special reason why ClassPathScanningCandidateComponentProvider.addCandidateComponentsFromIndex does create AnnotatedGenericBeanDefinitions while scanCandidateComponents creates ScannedGenericBeanDefinitions?

Without this ScannedGenericBeanDefinitions in ConfigurationClassBeanDefinitionReader.isOverriddenByExistingDefinition the bean definitions created from the index are treated different than the scanned bean definitions and overriding no longer works.

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions