Skip to content

Multiple bean instances are created when no id is specified [SPR-11757] #16379

@spring-projects-issues

Description

@spring-projects-issues

Victor Perepelitsky opened SPR-11757 and commented

When importing the same context more then once and there is a bean defined without id it will be created (and defined) multiple times.

In big application it is common case since there are a lot of configuration files that depends on each other and it should be acceptable that the same config is imported more than once.

Attached full test that reproduces the BUG.


Affects: 3.2.6, 3.2.7, 3.2.8, 4.0 GA, 4.0.1, 4.0.2, 4.0.3, 4.0.5

Attachments:

Issue Links:

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)status: duplicateA duplicate of another issue

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions