]> source.dussan.org Git - aspectj.git/commitdiff
experimental meta anno matching syntax test case
authoraclement <aclement>
Fri, 5 Aug 2011 16:18:19 +0000 (16:18 +0000)
committeraclement <aclement>
Fri, 5 Aug 2011 16:18:19 +0000 (16:18 +0000)
tests/features1611/metamatching/Code.java [new file with mode: 0644]

diff --git a/tests/features1611/metamatching/Code.java b/tests/features1611/metamatching/Code.java
new file mode 100644 (file)
index 0000000..9111ed8
--- /dev/null
@@ -0,0 +1,19 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Meta {}
+
+@Retention(RetentionPolicy.RUNTIME)
+@Meta
+@interface Foo {}
+
+public class Code {
+
+  @Foo
+  public void m() {}
+}
+aspect X {
+  before(): execution(@@Meta * *(..)) {
+  }
+}
+