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.
Is there a special reason why
ClassPathScanningCandidateComponentProvider.addCandidateComponentsFromIndexdoes createAnnotatedGenericBeanDefinitions whilescanCandidateComponentscreatesScannedGenericBeanDefinitions?Without this
ScannedGenericBeanDefinitions inConfigurationClassBeanDefinitionReader.isOverriddenByExistingDefinitionthe bean definitions created from the index are treated different than the scanned bean definitions and overriding no longer works.