diff options
author | aclement <aclement> | 2010-04-19 22:19:17 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-04-19 22:19:17 +0000 |
commit | e09e0b5f728c71dd2a06803f04eb566b53390004 (patch) | |
tree | 93b4e7a368cabd622af02eec21e006c9bd1c8298 /tests/bugs169 | |
parent | d97c25a05bf64f8c0c60e3efb6a7a1ce8a140531 (diff) | |
download | aspectj-e09e0b5f728c71dd2a06803f04eb566b53390004.tar.gz aspectj-e09e0b5f728c71dd2a06803f04eb566b53390004.zip |
309743
Diffstat (limited to 'tests/bugs169')
-rw-r--r-- | tests/bugs169/pr309743/A.java | 21 | ||||
-rw-r--r-- | tests/bugs169/pr309743/B.java | 23 |
2 files changed, 44 insertions, 0 deletions
diff --git a/tests/bugs169/pr309743/A.java b/tests/bugs169/pr309743/A.java new file mode 100644 index 000000000..68bc77ca1 --- /dev/null +++ b/tests/bugs169/pr309743/A.java @@ -0,0 +1,21 @@ +import java.lang.reflect.*; +import java.lang.annotation.*; + +public class A { + public static void main(String []argv) throws Exception { + Method m = A.class.getDeclaredMethod("foo"); + printM(m); + } + + private static void printM(Method m) { + System.out.println(m.getName()); + Annotation[] as = m.getAnnotations(); + for (Annotation a: as) { + System.out.println(a); + } + } +} + +aspect X { + public void A.foo() {} +} diff --git a/tests/bugs169/pr309743/B.java b/tests/bugs169/pr309743/B.java new file mode 100644 index 000000000..fbc8b6019 --- /dev/null +++ b/tests/bugs169/pr309743/B.java @@ -0,0 +1,23 @@ +import java.lang.reflect.*; +import java.lang.annotation.*; + +public class B { + public static void main(String []argv) { + Field[] fs = B.class.getDeclaredFields(); + for (Field f: fs) { + printM(f); + } + } + + private static void printM(Field m) { + System.out.println(m.getName()); + Annotation[] as = m.getAnnotations(); + for (Annotation a: as) { + System.out.println(a); + } + } +} + +aspect X { + public int B.boo; +} |