Behaviour of field injection for List dependencies that are produced and consumed by the same configuration class has changed in 4.3.5 snapshots [SPR-14996] #19563
Labels
in: core
Issues in core modules (aop, beans, core, context, expression)
type: regression
A bug that is also a regression
Milestone
Andy Wilkinson opened SPR-14996 and commented
I noticed this in 5.0 as well but didn't think too much of it, however I've just noticed that the latest 4.3.5 snapshots exhibit the same change in behaviour.
Here's small application that will reproduce the problem:
It will run successfully with 4.3.4.RELEASE and fail with 4.3.5.BUILD-SNAPSHOT due to
things
beingnull
.It also works without
required=false
with 4.3.4.RELEASE but fails with aNoSuchBeanDefinitionException
with 4.3.5.BUILD-SNAPSHOT.It works with both 4.3.4.RELEASE and 4.3.5.BUILD-SNAPSHOT if the field is
Thing
rather thanList<Thing>
.Affects: 4.3.5
Issue Links:
Referenced from: commits 547b963, 4571975
The text was updated successfully, but these errors were encountered: