Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression in 4.1: UnsatisfiedDependencyException because a prototype-scoped FactoryBean is unexpectedly instantiated by getTypeForFactoryBean() [SPR-12786] #17383
Occurs after update to 4.1.4 from 4.0.4. More specifically, 4.0.9 to 4.1.0.
Please see https://github.com/reid-harrison/my-failing-bean for a sample project that reproduces the issue.
Affects: 4.1 GA, 4.1.5
Juergen Hoeller commented
This turns out to be a regression caused by #16461, where the algorithm doesn't stop at a declared
Note that I strongly recommend avoiding such declarations. A non-singleton