Singleton from a FactoryBean may be post-processed twice if the first post-processing triggers a second attempt to get the bean [SPR-16783] #21323
Labels
status: backported
An issue that has been backported to maintenance branches
type: bug
A general bug
Milestone
Andy Wilkinson opened SPR-16783 and commented
Please see the referenced Spring Boot issue for my analysis of the failure and a sample project that can reproduce it.
I've also tried to create a more minimal reproduction of the problem. I've managed to reproduce a similar failure, but not the exact same one. The following code will fail when run:
It looks like it's blowing the stack but, rather than failing with a stack overflow, it outputs 400+ lines like the following:
It then fails with:
Affects: 4.3.16, 5.0.5
Reference URL: spring-projects/spring-boot#12280
Referenced from: commits 9281f82, be4c07f, fbd8301
Backported to: 4.3.17
0 votes, 6 watchers
The text was updated successfully, but these errors were encountered: