]> source.dussan.org Git - aspectj.git/commitdiff
234934: bug fix - npe
authoraclement <aclement>
Sun, 1 Jun 2008 20:47:29 +0000 (20:47 +0000)
committeraclement <aclement>
Sun, 1 Jun 2008 20:47:29 +0000 (20:47 +0000)
weaver/src/org/aspectj/weaver/patterns/ExactAnnotationFieldTypePattern.java

index ba4ebef4facf6e9fb1baf42c91343226fc6ebbe8..66f36a2297f04332e5ab452c28f245defe3e6296 100644 (file)
@@ -60,7 +60,8 @@ public class ExactAnnotationFieldTypePattern extends ExactAnnotationTypePattern
         resolved = true;
         FormalBinding formalBinding = scope.lookupFormal(formalName);
         if (formalBinding == null) {
-            scope.message(IMessage.ERROR, this, "when using @annotation(<annotationType>(<annotationField>)), <annotationField> must be bound");
+            scope.message(IMessage.ERROR, this, "When using @annotation(<annotationType>(<annotationField>)), <annotationField> must be bound");
+            return this;
         }
 
         annotationType = scope.getWorld().resolve(annotationType, true);