aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs170
diff options
context:
space:
mode:
authorAndy Clement <andrew.clement@gmail.com>2012-05-25 15:50:47 -0700
committerAndy Clement <andrew.clement@gmail.com>2012-05-25 15:50:47 -0700
commit7aad69eae7052e328ef156200e7ea82a386eed13 (patch)
tree6e24196821930e63dc2193efb9d380681341a244 /tests/bugs170
parent58685c4fd075e55aeb5a8c5eafda20f1c24d259e (diff)
downloadaspectj-7aad69eae7052e328ef156200e7ea82a386eed13.tar.gz
aspectj-7aad69eae7052e328ef156200e7ea82a386eed13.zip
377130 testsV1_7_0RC1
Diffstat (limited to 'tests/bugs170')
-rw-r--r--tests/bugs170/pr377130/Foo.java11
-rw-r--r--tests/bugs170/pr377130/Foo2.java11
2 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs170/pr377130/Foo.java b/tests/bugs170/pr377130/Foo.java
new file mode 100644
index 000000000..734ccbcea
--- /dev/null
+++ b/tests/bugs170/pr377130/Foo.java
@@ -0,0 +1,11 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {}
+
+@Anno
+aspect Foo {
+ public static void main(String []argv) {
+ System.out.println(Foo.class.getAnnotation(Anno.class));
+ }
+}
diff --git a/tests/bugs170/pr377130/Foo2.java b/tests/bugs170/pr377130/Foo2.java
new file mode 100644
index 000000000..b1b194f61
--- /dev/null
+++ b/tests/bugs170/pr377130/Foo2.java
@@ -0,0 +1,11 @@
+import java.lang.annotation.*;
+
+@Retention(RetentionPolicy.RUNTIME)
+@interface Anno {}
+
+@Anno
+privileged aspect Foo2 {
+ public static void main(String []argv) {
+ System.out.println(Foo2.class.getAnnotation(Anno.class));
+ }
+}