Skip to content

Beans defined by XML are skipped in @Configuration override [SPR-15805] #20360

Closed as not planned
@spring-projects-issues

Description

@spring-projects-issues

David Lopez opened SPR-15805 and commented

When you define a bean in a XML, you cannot redefine it in a @Component or @TestComponent class using a @Bean declaration). It can, however, be redefined using another XML.

I have defined this as a Improvement since I do not think it explicitly violates anything .. simply it is a grey zone in the DI part fo Spring, but anyway, I consider this behaviour inconsistent and weird.

This issue is similar to #14201, but to the case when


Affects: 4.3.9, 5.0 RC2

Attachments:

Issue Links:

1 votes, 1 watchers

Metadata

Metadata

Assignees

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