From ef3044a08dd1e5556c03e614ce8d799d61aaf041 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 23 Mar 2005 15:18:49 +0000 Subject: [PATCH] allow for changes in the underlying annotation set. --- weaver/src/org/aspectj/weaver/bcel/BcelMethod.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java index 69e67b7a2..6f8c782c9 100644 --- a/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java +++ b/weaver/src/org/aspectj/weaver/bcel/BcelMethod.java @@ -201,7 +201,7 @@ final class BcelMethod extends ResolvedMember { } private void ensureAnnotationTypesRetrieved() { - if (annotationTypes == null) { + if (annotationTypes == null || method.getAnnotations().length!=annotations.length) { // sometimes the list changes underneath us! Annotation annos[] = method.getAnnotations(); annotationTypes = new ResolvedTypeX[annos.length]; annotations = new AnnotationX[annos.length]; -- 2.39.5