From f365ababc310ac7edd90c7ebcbf91690d7ec2ed0 Mon Sep 17 00:00:00 2001 From: aclement Date: Sat, 10 May 2008 04:25:31 +0000 Subject: [PATCH] 227993: annotation value matching support for field annotations. plus hashcode/equals on annotationtypepatterns where it was missing! --- weaver/src/org/aspectj/weaver/bcel/BcelField.java | 10 +++++++++- .../weaver/patterns/ExactAnnotationTypePattern.java | 5 +++-- .../weaver/patterns/WildAnnotationTypePattern.java | 6 ++++-- 3 files changed, 16 insertions(+), 5 deletions(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelField.java b/weaver/src/org/aspectj/weaver/bcel/BcelField.java index b2a7e6b0d..c54b92869 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelField.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelField.java @@ -119,7 +119,15 @@ final class BcelField extends ResolvedMemberImpl { ensureAnnotationTypesRetrieved(); return annotations; } - + + public AnnotationX getAnnotationOfType(UnresolvedType ofType) { + ensureAnnotationTypesRetrieved(); + for (int i=0; i