--- /dev/null
+public aspect AnnotationAspect03 {
+
+ declare warning : execution(* *.*(..)) && @annotation(@SimpleAnnotation)
+ : "@annotation matched here";
+
+
+}
\ No newline at end of file
package org.aspectj.systemtest.ajc150;
import java.io.File;
+import java.util.ArrayList;
+import java.util.List;
import org.aspectj.bridge.IMessage;
import org.aspectj.tools.ajc.CompilationResult;
// msg3_field.toString().indexOf("can't make inter-type field declarations")!=-1);
// verifyWeavingMessagesOutput(cR,new String[]{});
}
+
+ public void test002_AtAnnotationMatching() {
+ CompilationResult cR = binaryWeave("testcode.jar","AnnotationAspect03.aj",0,1);
+ List expectedWarnings = new ArrayList();
+ expectedWarnings.add(new Message("@annotation matched here")); // L 8
+ assertMessages(cR, new MessageSpec(expectedWarnings, new ArrayList()));
+ }
}
\ No newline at end of file