]> source.dussan.org Git - aspectj.git/commitdiff
313026: testcode
authoraclement <aclement>
Fri, 4 Jun 2010 16:38:04 +0000 (16:38 +0000)
committeraclement <aclement>
Fri, 4 Jun 2010 16:38:04 +0000 (16:38 +0000)
tests/bugs169/pr313026/one/Asp.java [new file with mode: 0644]
tests/bugs169/pr313026/one/Bsp.java [new file with mode: 0644]
tests/bugs169/pr313026/one/Precedence1.java [new file with mode: 0644]
tests/bugs169/pr313026/one/Target.java [new file with mode: 0644]
tests/bugs169/pr313026/one/Wibble.java [new file with mode: 0644]

diff --git a/tests/bugs169/pr313026/one/Asp.java b/tests/bugs169/pr313026/one/Asp.java
new file mode 100644 (file)
index 0000000..cee77db
--- /dev/null
@@ -0,0 +1,3 @@
+aspect Asp {
+  declare @method: void Target.main(..): @Wibble("abc");
+}
diff --git a/tests/bugs169/pr313026/one/Bsp.java b/tests/bugs169/pr313026/one/Bsp.java
new file mode 100644 (file)
index 0000000..b1b7b84
--- /dev/null
@@ -0,0 +1,3 @@
+aspect Bsp {
+  declare @method: void Target.main(..): @Wibble("def");
+}
diff --git a/tests/bugs169/pr313026/one/Precedence1.java b/tests/bugs169/pr313026/one/Precedence1.java
new file mode 100644 (file)
index 0000000..0ecb02e
--- /dev/null
@@ -0,0 +1,3 @@
+aspect Precedence1 {
+  declare precedence: Asp,Bsp;
+}
diff --git a/tests/bugs169/pr313026/one/Target.java b/tests/bugs169/pr313026/one/Target.java
new file mode 100644 (file)
index 0000000..3405eba
--- /dev/null
@@ -0,0 +1,10 @@
+import java.lang.annotation.*;
+
+public class Target {
+  public static void main(String []argv) throws Exception {
+    Annotation[] annos = Target.class.getDeclaredMethod("main",String[].class).getAnnotations();
+    for (int i=0;i<annos.length;i++) {
+      System.out.println(annos[i]);
+    }
+  }
+}
diff --git a/tests/bugs169/pr313026/one/Wibble.java b/tests/bugs169/pr313026/one/Wibble.java
new file mode 100644 (file)
index 0000000..b406cd2
--- /dev/null
@@ -0,0 +1,6 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Wibble {
+  String value();
+}