summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoraclement <aclement>2010-06-04 16:38:04 +0000
committeraclement <aclement>2010-06-04 16:38:04 +0000
commit65993866835efcf54ff9b4ac0f3294efabd13e5f (patch)
tree1cf1cef73ec5ddf5a9407f7fa995f07ff2ab626c
parent9e6629c40e42dbd6711209278b33ec44f2789100 (diff)
downloadaspectj-65993866835efcf54ff9b4ac0f3294efabd13e5f.tar.gz
aspectj-65993866835efcf54ff9b4ac0f3294efabd13e5f.zip
313026: testcode
-rw-r--r--tests/bugs169/pr313026/one/Asp.java3
-rw-r--r--tests/bugs169/pr313026/one/Bsp.java3
-rw-r--r--tests/bugs169/pr313026/one/Precedence1.java3
-rw-r--r--tests/bugs169/pr313026/one/Target.java10
-rw-r--r--tests/bugs169/pr313026/one/Wibble.java6
5 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs169/pr313026/one/Asp.java b/tests/bugs169/pr313026/one/Asp.java
new file mode 100644
index 000000000..cee77db49
--- /dev/null
+++ b/tests/bugs169/pr313026/one/Asp.java
@@ -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
index 000000000..b1b7b8451
--- /dev/null
+++ b/tests/bugs169/pr313026/one/Bsp.java
@@ -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
index 000000000..0ecb02e88
--- /dev/null
+++ b/tests/bugs169/pr313026/one/Precedence1.java
@@ -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
index 000000000..3405eba27
--- /dev/null
+++ b/tests/bugs169/pr313026/one/Target.java
@@ -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
index 000000000..b406cd28e
--- /dev/null
+++ b/tests/bugs169/pr313026/one/Wibble.java
@@ -0,0 +1,6 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Wibble {
+ String value();
+}