diff options
Diffstat (limited to 'weaver')
-rw-r--r-- | weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java index 66f36a229..0263035eb 100644 --- a/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java +++ b/weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java @@ -76,6 +76,11 @@ public class ExactAnnotationFieldTypePattern extends ExactAnnotationTypePattern cleanname = cleanname.substring(0, lastDot) + "$" + cleanname.substring(lastDot + 1); } annotationType = scope.getWorld().resolve(type, true); + if (ResolvedType.isMissing(annotationType)) { + // there are likely to be other errors around that have led to us being unable to + // resolve the annotation type, let's quit now + return this; + } } verifyIsAnnotationType((ResolvedType) annotationType, scope); |