From fe049eacaf0c2befba6e617aac2d7387548f5f24 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 30 Jun 2010 00:20:30 +0000 Subject: [PATCH] 318397: clear cache --- .../ajdt/internal/compiler/lookup/EclipseSourceType.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.39.5