diff options
author | aclement <aclement> | 2010-06-30 00:20:30 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-06-30 00:20:30 +0000 |
commit | fe049eacaf0c2befba6e617aac2d7387548f5f24 (patch) | |
tree | 92f854de349e46e218a2673298ffe01d10dbc09b /org.aspectj.ajdt.core | |
parent | 8659ce4fd4def30f97ba40c5f39f174ac9fda2ce (diff) | |
download | aspectj-fe049eacaf0c2befba6e617aac2d7387548f5f24.tar.gz aspectj-fe049eacaf0c2befba6e617aac2d7387548f5f24.zip |
318397: clear cache
Diffstat (limited to 'org.aspectj.ajdt.core')
-rw-r--r-- | org.aspectj.ajdt.core/src/org/aspectj/ajdt/internal/compiler/lookup/EclipseSourceType.java | 4 |
1 files changed, 3 insertions, 1 deletions
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; |