summaryrefslogtreecommitdiffstats
path: root/org.aspectj.ajdt.core
diff options
context:
space:
mode:
authoraclement <aclement>2010-06-30 00:20:30 +0000
committeraclement <aclement>2010-06-30 00:20:30 +0000
commitfe049eacaf0c2befba6e617aac2d7387548f5f24 (patch)
tree92f854de349e46e218a2673298ffe01d10dbc09b /org.aspectj.ajdt.core
parent8659ce4fd4def30f97ba40c5f39f174ac9fda2ce (diff)
downloadaspectj-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.java4
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;