-
Notifications
You must be signed in to change notification settings - Fork 38.4k
AnnotatedElementUtils fails to find annotations on abstract, bridge, or interface methods [SPR-12738] #17335
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
Rossen Stoyanchev commented Tests added in b94c6fd. For example, |
Sam Brannen commented Potentially related commits to review: |
Sam Brannen commented FYI: support for finding annotations at the type level on interfaces is addressed by #17537. |
Sam Brannen commented Completed as described in GitHub commit ad6bea1:
|
Sam Brannen commented ImportantTo utilize these features, you will need to invoke The existing |
Sam Brannen commented Note the (x) in this issue's description. Basically, The test you introduced in Thus, I think your test might not adequately mimic what occurs at runtime. For example, in Can you please rebase your temporary branch against master and let me know if the new Thanks! Sam |
Rossen Stoyanchev commented Sure I'll give it a try. |
Rossen Stoyanchev commented Sam Brannen, I rebased my branch but still seeing the same failures. Would you take a look? Run the spring-webmvc tests and the failures are in MvcUriComponentsBuilderTests, ServletAnnotationControllerHandlerMethodTests, and HandlerMethodAnnotationDetectionTests. |
Sam Brannen commented Rossen Stoyanchev, I have not checked out your branch, but just by looking at the code on GitHub, I see that you are still invoking Please switch to Thanks, Sam |
Rossen Stoyanchev commented All green! |
Sam Brannen commented Awesome! :) Thanks for letting me know. |
Rossen Stoyanchev opened SPR-12738 and commented
Overview
This was encountered while adding support for
@RequestMapping
as meta annotation. Following a change fromAnnotationUtils.findAnnotation
toAnnotatedElementUtils.getAnnotationAttributes
, there are failing integration tests with controller hierarchies.Analysis / Known Issues
AnnotatedElementUtils
does not currently support interfaces or bridge methods in its search algorithms.Deliverables
AnnotatedElementUtils
.AnnotatedElementUtils
.AnnotatedElementUtils
.AnnotatedElementUtils
.AnnotatedElementUtilsTests
and re-instate@Ignore
'd tests.TransactionalEventListenerTests
and re-instate@Ignore
'd tests.Affects: 4.1.5
Issue Links:
@RequestMapping
annotations ("is depended on by")Referenced from: commits 7f0f04d, 91e46cf, bccd59e, 8ece1b1, ad6bea1, e0d2dbd, b94c6fd
The text was updated successfully, but these errors were encountered: