ImportsContextCustomizer does not support AliasFor#34917
ImportsContextCustomizer does not support AliasFor#34917lmartelli wants to merge 2 commits intospring-projects:mainfrom
Conversation
bb59448 to
8c75138
Compare
8c75138 to
3a2e2cd
Compare
wilkinsona
left a comment
There was a problem hiding this comment.
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
MergedAnnotationsin order to support@AliasFor.I used plain
Predicateinstead ofAnnotationFilterbecause it is much simpler and generic.