Skip to content

Autowired properties can remain unset during concurrent instantiation of prototype-beans [SPR-9806] #14439

Closed
@spring-projects-issues

Description

@spring-projects-issues

Barnabas Bodnar opened SPR-9806 and commented

Autowired properties of prototype-beans referencing singletons can remain unset, if ApplicationContext.getBean(...) is called for the prototype-bean concurrently.
Neither the initialization-type of the singleton, nor the fact, whether the singleton already exists or not, plays a role (i.e. the error occurs even if the singleton is already initialized).

The error is reproducible even with low concurrency-rates (2 threads).


Affects: 3.1.2

Attachments:

Issue Links:

Referenced from: commits b79260a, 7fc1629

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions