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

If bean discovery fails, re-initialization can occur #458

Closed
seancorfield opened this issue Oct 26, 2016 · 0 comments
Closed

If bean discovery fails, re-initialization can occur #458

seancorfield opened this issue Oct 26, 2016 · 0 comments
Assignees
Labels
bug
Milestone

Comments

@seancorfield
Copy link
Member

@seancorfield seancorfield commented Oct 26, 2016

If discoverBeansInFolder() throws an exception, then it's possible for discoverBeans() to be called again (as part of an application's error handling attempt to get a bean etc) and that will then cause some beans to be reloaded, and you get a duplicate bean error (if you have aliases disabled).

That function should catch exceptions, set discovery as being complete, and then rethrow the exception.

@seancorfield seancorfield added this to the 4.1 milestone Oct 26, 2016
@seancorfield seancorfield self-assigned this Oct 26, 2016
seancorfield added a commit that referenced this issue Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.