]> source.dussan.org Git - aspectj.git/commitdiff
allow for changes in the underlying annotation set.
authoraclement <aclement>
Wed, 23 Mar 2005 15:18:49 +0000 (15:18 +0000)
committeraclement <aclement>
Wed, 23 Mar 2005 15:18:49 +0000 (15:18 +0000)
weaver/src/org/aspectj/weaver/bcel/BcelMethod.java

index 69e67b7a215664a5a4b775752a5f55875cb47763..6f8c782c9d4685ef6922357030d84eef71754566 100644 (file)
@@ -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];