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

seancorfield opened this Issue Oct 26, 2016 · 0 comments


None yet
1 participant

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment