-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Misleading error message with immutable configuration properties and @Component #18646
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
Comments
@snicoll you mind if I grab this one? |
Thanks for the offer but we're reconsidering this mechanism (see #18652) and this may have consequences on this one. |
Yeh I saw quite a few other similar issues for the new ConfigurationProperties binding and thought that may be the case. I will keep looking for other candidates. |
@snicoll Thanks for the example of the failing application and the explanation of removing I ran into the same error message when I had an Removing the |
Ran into this issue today. When specifying the class with |
The changes made for #20798 have changed the error message as failure analysis is now performed. It is now the following:
It's difficult to be much more specific as, while a class may be annotated with WDYT, @snicoll? Can we close this one or should we use it to try to further refine the improvements made in #20798? |
Thanks for the follow-up. Yep, all good, closing this one as being superseded by #20798. |
Consider the following example that is target for regular classpath scanning
This fails with the following exception:
Removing
@Component
fixes the issue but I think the error message could be reworded to make that a bit more explicit.The text was updated successfully, but these errors were encountered: