-
Notifications
You must be signed in to change notification settings - Fork 38.4k
Support composed annotations declared on interfaces [SPR-11108] #15734
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 To reproduce this lacking support, see the |
Juergen Hoeller commented Good point. Alright, let's try to roll this into 4.0 RC2 still... Juergen |
Juergen Hoeller commented Sam, this doesn't seem to have much to do with AnnotationAttributes or the like... It's rather that we generally only detect Let me know if I'm missing something... Juergen |
Sam Brannen commented Juergen, just to recap on our discussion... I mentioned support for
So there is in fact a difference in the behavior of Regards, Sam |
Sam Brannen commented Update: #17300 covers interface support in |
No issues have been reported related to this topic in almost 10 years. In addition, we have since switched to a In light of that, I am closing this issue. |
Sam Brannen opened SPR-11108 and commented
Status Quo
The
findAnnotation()
methods inAnnotationUtils
currently support searching for meta-annotations declared on composed annotations that are declared on interfaces; however, various parts of the framework -- for example, code that relies onAnnotationAttributes
- only support composed annotations on classes or methods (not on interfaces or interface methods).For example, given the following:
Spring's support for resolving transaction attributes (e.g., the
AbstractFallbackTransactionAttributeSource.computeTransactionAttribute()
toSpringTransactionAnnotationParser.parseTransactionAnnotation()
call stack) fails to find@Transactional
which is declared via@TxWithAttribute
on interfaces.Proposal
Introduce support for composable stereotype annotations declared on interfaces.
Affects: 4.0 RC1
Issue Links:
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: