Log alias removal in DefaultListableBeanFactory
#34070
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: backported
An issue that has been backported to maintenance branches
type: enhancement
A general enhancement
Milestone
Issue
The following code was added in
DefaultListableBeanFactory
from 6.x to check whether an alias for thebeanName
exists.If it exists, the corresponding alias is removed.
However, there is no log message to indicate that an alias was removed, which can lead to errors without any warning message to the user.
Proposal
Include logging for removal of an alias, similar to how it is done when there is a duplicate bean name with
logBeanDefinitionOverriding()
.The text was updated successfully, but these errors were encountered: