From: aclement Date: Fri, 4 Jun 2010 16:38:04 +0000 (+0000) Subject: 313026: testcode X-Git-Tag: PRE_PUSHIN~3 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=65993866835efcf54ff9b4ac0f3294efabd13e5f;p=aspectj.git 313026: testcode --- 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