Closed
Description
Costin Leau opened SPR-7915 and commented
When injecting an entity that extends Map, the container automatically assumes the bean names/instances need to be injected even if that's not the case.
Example and discussion here: https://jira.springsource.org/browse/SGF-22
Affects: 3.0.5
Attachments:
- spring-autowiring-testproject.zip (2.65 kB)
Issue Links:
- Make spring support like CDI @Produces (for Array/Map/Collection inject) [SPR-11269] #15894 Make spring support like CDI
@Produces
(for Array/Map/Collection inject) ("is duplicated by") - Optional autowire of Map<String, BeanType> accidentally falls back to unrelated Map<String, String> [SPR-13963] #18536 Optional autowire of Map<String, BeanType> accidentally falls back to unrelated Map<String, String>
- Can't autowire BiMap: container resolves non-matching Map of value beans [SPR-15117] #19684 Can't autowire BiMap: container resolves non-matching Map of value beans
- NoSuchBeanDefinitionException message shows internal array class names [SPR-14595] #19164 NoSuchBeanDefinitionException message shows internal array class names
- @Autowired does not work for target bean of type Collection [SPR-12180] #16794
@Autowired
does not work for target bean of type Collection - Doc: Constructor injection of arrays and collections [SPR-14332] #18904 Doc: Constructor injection of arrays and collections
- Cannot inject List<String> even using @Named [SPR-13585] #18162 Cannot inject List even using
@Named
Referenced from: commits 4a0fa69
2 votes, 3 watchers