Christopher Smith opened SPR-12018 and commented
If an @Configuration superclass provides a method annotated @Bean, the JavaConfig system can start invoking the superclass's @Bean methods before the actual object is fully constructed. If a subclass overrides one of these @Bean methods, and the superclass depends on retrieving a valid object from it, the superclass's initialization will fail.
The JavaConfig system should not treat @Configuration objects as live service objects until all dependencies have been injected and the @PostConstruct methods called.
Affects: 4.0.6
Issue Links:
Christopher Smith opened SPR-12018 and commented
If an
@Configurationsuperclass provides a method annotated@Bean, the JavaConfig system can start invoking the superclass's@Beanmethods before the actual object is fully constructed. If a subclass overrides one of these@Beanmethods, and the superclass depends on retrieving a valid object from it, the superclass's initialization will fail.The JavaConfig system should not treat
@Configurationobjects as live service objects until all dependencies have been injected and the@PostConstructmethods called.Affects: 4.0.6
Issue Links:
@AutowiredList into Configuration that defines@BeanToAutoWire fails@Configurationclass itself@Conditionexclusion