]> source.dussan.org Git - aspectj.git/commit
SignaturePattern: Add exception for meta annotations
authorAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 11:18:04 +0000 (13:18 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Fri, 12 Apr 2024 13:14:35 +0000 (15:14 +0200)
commitc2acbdf9ea5056219e177b54ff08d0d1b38b0c95
tree4c99b744a71a43100838bf4df6276d6c18815600
parentb5ff0942c3c5bb3e734a6c3b0c7a1dc367dadd51
SignaturePattern: Add exception for meta annotations

Upon meta annotation usage in signature patterns, lint warnings like the
following were issued during type parameter traversal:

  does not match because annotation @java.lang.annotation.Inherited
  has @Target{ElementType.ANNOTATION_TYPE} [Xlint:unmatchedTargetKind]

To avoid this, we now heuristically check if we are in a meta annotation
situation and, if so, permit it.

Signed-off-by: Alexander Kriegisch <Alexander@Kriegisch.name>
org.aspectj.matcher/src/main/java/org/aspectj/weaver/patterns/SignaturePattern.java