From: aclement Date: Wed, 30 Jun 2010 00:20:30 +0000 (+0000) Subject: 318397: clear cache X-Git-Tag: V1_6_9~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe049eacaf0c2befba6e617aac2d7387548f5f24;p=aspectj.git 318397: clear cache --- diff --git a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java index b2525bbcd..4e1a57769 100644 --- a/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java +++ b/org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java @@ -593,7 +593,9 @@ public class EclipseSourceType extends AbstractReferenceTypeDelegate { * ResolvedType representations. This does not deeply resolve the annotations, it only does the type names. */ private void ensureAnnotationTypesResolved() { - if (!annotationTypesAreResolved) { + // may need to re-resolve if new annotations have been added + int declarationAnnoCount = (declaration.annotations == null ? 0 : declaration.annotations.length); + if (!annotationTypesAreResolved || declarationAnnoCount != annotationTypes.length) { Annotation[] as = declaration.annotations; if (as == null) { annotationTypes = ResolvedType.NONE;