Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Throw a specific exception when an attempt to override a bean definition is rejected [SPR-16982] #21520

Closed
spring-projects-issues opened this issue Jun 28, 2018 · 2 comments
Assignees
Labels
in: core type: enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

@spring-projects-issues spring-projects-issues commented Jun 28, 2018

Andy Wilkinson opened SPR-16982 and commented

We'd like to disable bean overriding by default in Boot. To allow us to provide good diagnostics, it would be very useful if, when rejecting an attempted override, DefaultListableBeanFactory threw a custom subclass of BeanDefinitionStoreException with accessors for both the existing a new bean definitions.


Affects: 5.1 RC1

Reference URL: spring-projects/spring-boot#13609

Referenced from: commits 182243d

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 4, 2018

Juergen Hoeller commented

There is a corresponding BeanDefinitionOverrideException in master now.

@spring-projects-issues
Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 6, 2018

Andy Wilkinson commented

Thanks!

@spring-projects-issues spring-projects-issues added type: enhancement in: core labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.1 RC1 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core type: enhancement
Projects
None yet
Development

No branches or pull requests

2 participants