diff options
author | aclement <aclement> | 2005-03-23 15:18:49 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-03-23 15:18:49 +0000 |
commit | ef3044a08dd1e5556c03e614ce8d799d61aaf041 (patch) | |
tree | 276594bd6f8fed67858359c60be2ea2f24d8617d | |
parent | 70fb0d14b3829d7ce36d0705734e8dfda5857616 (diff) | |
download | aspectj-ef3044a08dd1e5556c03e614ce8d799d61aaf041.tar.gz aspectj-ef3044a08dd1e5556c03e614ce8d799d61aaf041.zip |
allow for changes in the underlying annotation set.
-rw-r--r-- | weaver/src/org/aspectj/weaver/bcel/BcelMethod.java | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |