Skip to content

Treat non-inherited composed annotations for inherited annotations as inherited #1133

@sbrannen

Description

@sbrannen

Overview

Based on a discussion in Gitter, it has come to my attention that we do not support annotation searches for single annotations and repeatable annotations consistently.

Specifically, we traverse the class hierarchy in search of an annotation only if the annotation is repeatable and @Inherited.

Deliverables

  • Traverse class hierarchy and meta-annotation hierarchies when searching for non-repeatable annotations that are annotated with @Inherited.
    • Algorithm located in AnnotationUtils.findAnnotation(AnnotatedElement, Class<A>, Set<Annotation>)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions