Having two bean factory methods with different return type results in NoSuchBeanDefinitionException [SPR-17437] #21970
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
status: duplicate
A duplicate of another issue
Matúš Sekáč opened SPR-17437 and commented
When I create two bean factory methods with the same name and different return type (and with qualifiers of course), the Application Context fails to start and the error message suggests that there is no bean of either type defined. This is misleading error message. It should either work (all information to distinguish beans is there), or fail with proper error message (Eg. ambiguous factory method definition).
See attached example project.
Affects: 5.0.10
Attachments:
The text was updated successfully, but these errors were encountered: