-
Notifications
You must be signed in to change notification settings - Fork 38.4k
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
Add javadoc notes on potential exception suppression in ListableBeanFactory#getBeansOfType
#34629
Comments
Note that we generally recommend |
Hello @jhoeller,
I will change my implementation to Thank you! |
It only suppresses I'll reopen this issue for adding some javadoc notes to |
ListableBeanFactory#getBeansOfType
Your improvement on javadoc is good and clear enough. I think this note would have prevented my bug. |
Hi,
DefaultListableBeanFactory#getBeansOfType
catches and swallowsBeanCreationException
. The method documentation and name creates the assumption, that getBeansOfType has the same behiour likeBut the result is totally differnt. This behaviour is not well documented and unexpected to the client.
Best greetings,
Ben
The text was updated successfully, but these errors were encountered: