Inconsistency between property Injection and setter Injection causes NoUniqueBeanDefinitionException [SPR-14179] #18750
Labels
status: declined
A suggestion or change that we don't feel we should currently apply
Christian Hersevoort opened SPR-14179 and commented
The case is as follows:
Beans:
XML configuration:
Case #1: This works:
Case #2: This doesn't work:
I expect Spring to handle both cases exactly the same, but Case #2 throws an unexpected NoUniqueBeanDefinitionException. (see attachment)
Am I wrong to assume this is a bug?
Affects: 4.2.1, 4.2.5, 4.3 RC1
Attachments:
Issue Links:
@Configuration
mark@Inject
fields and setters as satisfied (injected)?The text was updated successfully, but these errors were encountered: