-
Notifications
You must be signed in to change notification settings - Fork 38.5k
Support repeatable annotations as composed annotations [SPR-13973] #18545
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
Sam Brannen commented Yes, I do believe this is the expected behavior. Basically, none of the methods in Only Regarding the (original) subject of this issue, In other words, we do not currently have any search algorithms that support merging of annotation attributes within an annotation hierarchy for repeatable annotations. So... if that's something you'd like to have support for, we could create another issue or repurpose this one. |
Juergen Hoeller commented Sam Brannen, I was about to create such an issue myself, actually... since it seems to be the root cause of #18376. Definitely something to sort out for 4.3, I guess as a new variant of repeatable annotation lookup on Juergen |
Juergen Hoeller commented Our main remaining use of That's probably the biggest gap that we have in our annotation composability story at this point, so worth some priority. |
Sam Brannen commented |
Sam Brannen commented Juergen Hoeller, yes, this new functionality would have to reside in
|
Sam Brannen commented Completed as described in GitHub commit 2535469:
|
Sam Brannen commented Phil Webb, please give this a try in the next 4.3 snapshot and let me know if it meets your needs. Cheers! |
Sam Brannen commented Reopening in order to introduce This is needed, for example, in |
Sam Brannen commented Added support for "get" search semantics in 46e0484 |
Sam Brannen commented Based on your comments above, I went ahead and migrated the lookups for I have also added tests for all of these, except for When I started writing a test for
|
Sam Brannen commented Team Decisions
|
Uh oh!
There was an error while loading. Please reload this page.
Phil Webb opened SPR-13973 and commented
Given the following annotations:
And the following class:
Calling
AnnotationUtils.getRepeatableAnnotations(MetaMockBean.class,MockBean.class, MockBeans.class)
will return a synthesized annotation. However, callingvalue()
on the result returnsVoid.class
rather than the expectedExampleService.class
.Is this expected behavior?
Affects: 4.2.4
Issue Links:
@AliasFor
for@JmsListener
attributes ("is depended on by")@Cache
* as merged composed annotations@AliasFor
for@JmsListener
attributes ("supersedes")Referenced from: commits 4836d06, 46e0484, 2ed3382, b0c6357, c6f6e19, 3597879, d572b02, 2535469, 4fa11e3, c6b1f38, 4742aa0, b6d9fd3
The text was updated successfully, but these errors were encountered: