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

Favor more locally declared composed annotations over interface annotations in AnnotationUtils [SPR-12355] #16960

spring-projects-issues opened this issue Oct 20, 2014 · 0 comments
type: enhancement


Copy link

@spring-projects-issues spring-projects-issues commented Oct 20, 2014

Juergen Hoeller opened SPR-12355 and commented

Following up on #16100, AnnotationUtils.findAnnotation has another quirk that needs to be fixed: Locally declared composed annotations need to be favored over annotations declared on interfaces. The current behavior, fortunately unlikely to be ever hit in practice, is conceptually and intuitively wrong. And if fixed, the lookup can be implemented more efficiently overall.

Affects: 4.1 GA

Issue Links:

  • #16100 Favor more locally declared composed annotations over inherited annotations in AnnotationUtils
  • #16930 AnnotationUtils provides poor diagnostics if getDeclaredAnnotations throws an exception

Referenced from: commits 716916b

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
type: enhancement
None yet

No branches or pull requests

2 participants