Skip to content

about method #getSingleton(String beanName, boolean allowEarlyReference) since tag v5.2.9.RELEASE #29821

@dqq7617

Description

@dqq7617

Environment: Spring v5.2.9.RELEASE
Class: DefaultSingletonBeanRegistry.java
Method: getSingleton(String beanName, boolean allowEarlyReference)

why did synchronized(this.singletonObjects) change from before to after get bean from earlySingletonObjects, in the case of concurrency and exist circle dependency, wouldn't it be possible to get incomplete bean?

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions