Skip to content

Make it possible to determine if circular references are prohibited or if the cycle just couldn't be broken #27289

@wilkinsona

Description

@wilkinsona

Affects: 5.3

In Spring Boot 2.6, we intend to prohibit circular references by default with a configuration property and Java API to turn it back on again. As part of this, I'd like to update our BeanCurrentlyInCreationFailureAnalyzer to suggest that, as a last resort, circular references could be turned back on again to possibly break the cycle. I'd like to only suggest this if AbstractAutowireCapableBeanFactory.allowCircularReferences is false. Unfortunately, without resorting to reflection, I can't get the flag's value. Could an accessor please be added?

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions