-
Notifications
You must be signed in to change notification settings - Fork 40.9k
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
ImportsContextCustomizer does not support AliasFor #34917
ImportsContextCustomizer does not support AliasFor #34917
Conversation
bb59448
to
8c75138
Compare
8c75138
to
3a2e2cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the proposal, @lmartelli. We try to minimise the scope of changes that we make, particularly in maintenance releases. With this in mind, these changes are too broad. For example, the move from AnnotationFilter
to Predicate
is not necessary to fix the problem. We also don't use var
in Spring Boot's code. Would you like to rework your proposal so that it only makes the changes that are required to fix the problem and nothing more?
Sure, I'll do that. |
@wilkinsona But note that we still have to remove |
@wilkinsona is the new version OK ? |
This still looks quite a large change to me and I am not sure the use of |
@lmartelli do you want to review your contribution based on the suggestion above? If no, no problem and we can close this and reopen the related issue. |
Yes, I will do that. I just need to find a little time. |
Add test to ensure that `ImportsContextCustomizer` can support `@AliasFor` annotations. See gh-34917
Update `ImportsContextCustomizer` to use `MergedAnnotations` so that `@AliasFor` can be supported. See gh-34917
Thanks very much @lmartelli, I've taken the tests from this commit and merged them into 2.7 along with a minimal fix. I've also taken the changes you made to Thanks again! |
Fixes #34854
Use
MergedAnnotations
in order to support@AliasFor
.I used plain
Predicate
instead ofAnnotationFilter
because it is much simpler and generic.