Skip to content
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

Support package private annotations with AnnotationUtils [SPR-12858] #17456

spring-issuemaster opened this issue Mar 27, 2015 · 1 comment


None yet
2 participants
Copy link

commented Mar 27, 2015

Phil Webb opened SPR-12858 and commented

AnnotationUtils.getAnnotationAttributes currently doesn't work with package scope annotations.

I believe that calling method.setAccessible(true) when iterating the methods would solve the issue.

Affects: 4.1.6

Issue Links:

  • #17487 AnnotatedElementUtils should leniently ignore TypeNotPresentExceptions (just like AnnotationUtils)

This comment has been minimized.

Copy link
Collaborator Author

commented Mar 31, 2015

Juergen Hoeller commented

Since we are calling setAccessible for similar invocations in AnnotationUtils, this is arguably a consistency issue. I'll therefore backport this to 4.1.7 as well.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.