-
Notifications
You must be signed in to change notification settings - Fork 38k
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
SpringFactoriesLoader.instantiateFactory(…) should report offending class on error #22453
Comments
Isn't the implementation class name usually part of the nested exception anyway? |
It is indeed. I just thought that the primary exception message could reveal the original offender, especially as it states "Unable to instantiate factory class" but then prints the interface name. |
@jhoeller, are you actively working on this? If not, I'd be happy to pick it up. |
I actually did something similar for the TestContext framework which uses Lines 216 to 231 in 777b4c8
So I'll improve the exception message in |
@odrotbohm, are you satisfied with the outcome in f087fd5? |
LGTM. |
SpringFactoriesLoader.instantiateFactory(…)
reports the name of the interface that implementations are looked up for. However, it does not report the name of the actual implementation class whose failed creation is likely to have caused the exception.The text was updated successfully, but these errors were encountered: