BeanDefinitionOverrideException not thrown as expected #28970
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: invalid
An issue that we don't feel is valid
environment: spring boot 2.6.10
define a demo app with following configuration class:
should be: BeanDefinitionOverrideException
is: bean named "aaa" added to bean context (with value "foo"), method bar() never added to bean definition
debugging shows a return statement here, that seems to the cuprit.
spring-framework/spring-context/src/main/java/org/springframework/context/annotation/ConfigurationClassBeanDefinitionReader.java
Lines 212 to 219 in 8fe6a9f
The text was updated successfully, but these errors were encountered: