Skip to content

Backport fix for multiple invocations of ImportBeanDefinitionRegistrars [SPR-9939] #14572

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened SPR-9939 and commented

I think this is a reasonable backport candidate as with Spring Data we don't want to force users on to 3.2 abruptly and the logs for the overridden bean definitions might lead users into thinking they're setting up their application context invalidly. Furthermore, even if the duplicate invocation doesn't cause any issues with our ImportBeanDefinitionRegistrar it will for implementations which use auto-generated bean names as they'll accidentally register two bean instances which might break autowiring by type as no unique bean then can be found.


This issue is a backport sub-task of #14558

Issue Links:

Referenced from: commits spring-projects/spring-hateoas@48b039a, spring-projects/spring-hateoas@3976ae1

Metadata

Metadata

Assignees

No one assigned

    Labels

    in: coreIssues in core modules (aop, beans, core, context, expression)

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions