Closed
Description
Francisco Lozano opened SPR-16163 and commented
#20582 was seemingly fixed for 5.0.1 for autowiring, but in that release when asking the app context directly for a map of beans of a given type (getBeansOfType), the problem remains.
Reproduced in spring-attic/spring-framework-issues#173.
Affects: 5.0.1
Issue Links:
- CastClass exception when wiring Map of beans (NullBean instead of 'null' in the map) [SPR-16033] #20582 CastClass exception when wiring Map of beans (NullBean instead of 'null' in the map)
- BeanNotOfRequiredTypeException (NullBean instead of null) when calling ApplicationContext.getBean(name, type) [SPR-16342] #20889 BeanNotOfRequiredTypeException (NullBean instead of null) when calling ApplicationContext.getBean(name, type)
- Consistent non-exposure of null beans in the BeanFactory API [SPR-17034] #21572 Consistent non-exposure of null beans in the BeanFactory API
Referenced from: commits 9649b0c