When @DependsOn throws a NoSuchBeanDefinitionException it should include the dependent bean for clarity [SPR-16628] #21169
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
Kyle Anderson opened SPR-16628 and commented
When a bean annotated with
@DependsOn
references a bean name that doesn't exist, a NoSuchBeanDefinitionException is thrown.Example:
I think this exception can be improved to contain information pertaining to the bean that was annotated with
@DependsOn
.Example:
This would add a little extra clarity and traceability.
Affects: 4.3.14, 5.0.4
Reference URL: #1751
Backported to: 4.3.15
The text was updated successfully, but these errors were encountered: