Janne Valkealahti opened SPR-12127 and commented
While updating SHDP to 4.1.RC2 I noticed some changed behaviour in autowiring. Short story is that I autowired list of beans in @Configuration class and had one default bean("defaultGridProjectionFactory) in a same class. This was done to allow user to replace/add these GridProjectionFactory beans. This worked up to 4.1.RC1/4.0.5 and broke with 4.1.RC2. Below is a diff showing how I fixed it in YarnAppmasterAutoConfiguration.
spring-attic/spring-hadoop@427aaeb#diff-2
I was a bit amazed that having bean defined in a @Configuration class which would be autowired in that same @Configuration actually worked. Anyway, it's all good from our side but just wanted to give heads up if this change wasn't intentional in core. You can zap this jira if it works as planned.
Affects: 4.1 RC2
Issue Links:
Janne Valkealahti opened SPR-12127 and commented
While updating SHDP to 4.1.RC2 I noticed some changed behaviour in autowiring. Short story is that I autowired list of beans in
@Configurationclass and had one default bean("defaultGridProjectionFactory) in a same class. This was done to allow user to replace/add these GridProjectionFactory beans. This worked up to 4.1.RC1/4.0.5 and broke with 4.1.RC2. Below is a diff showing how I fixed it in YarnAppmasterAutoConfiguration.spring-attic/spring-hadoop@427aaeb#diff-2
I was a bit amazed that having bean defined in a
@Configurationclass which would be autowired in that same@Configurationactually worked. Anyway, it's all good from our side but just wanted to give heads up if this change wasn't intentional in core. You can zap this jira if it works as planned.Affects: 4.1 RC2
Issue Links:
@Beanmethods too early in case of a circular reference@AutowiredList into Configuration that defines@BeanToAutoWire fails