diff options
Diffstat (limited to 'tests/bugs169/pr309743/A.java')
-rw-r--r-- | tests/bugs169/pr309743/A.java | 21 |
1 files changed, 21 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() {} +} |