aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs161
diff options
context:
space:
mode:
authoraclement <aclement>2008-05-27 16:44:14 +0000
committeraclement <aclement>2008-05-27 16:44:14 +0000
commit0ad779a799bd8a7dfb6d248aa9cc4c822517dd90 (patch)
treefe41977ca68f337fa2e2bac00ac3fb09df88fe3a /tests/bugs161
parent4a053f50b39dbe6560dc8fc35ea726b68d911f38 (diff)
downloadaspectj-0ad779a799bd8a7dfb6d248aa9cc4c822517dd90.tar.gz
aspectj-0ad779a799bd8a7dfb6d248aa9cc4c822517dd90.zip
233838: testcode: itd and declare precedence
Diffstat (limited to 'tests/bugs161')
-rw-r--r--tests/bugs161/pr233838/Z.java17
-rw-r--r--tests/bugs161/pr233838/Z2.java17
2 files changed, 34 insertions, 0 deletions
diff --git a/tests/bugs161/pr233838/Z.java b/tests/bugs161/pr233838/Z.java
new file mode 100644
index 000000000..5a3e8bc71
--- /dev/null
+++ b/tests/bugs161/pr233838/Z.java
@@ -0,0 +1,17 @@
+interface X {
+ static aspect IMPL {
+ public void X.test() { System.out.println("X.test()"); }
+ }
+}
+
+interface Y {
+ static aspect IMPL {
+ declare precedence : X.IMPL, Y.IMPL;
+
+ public void Y.test() { System.out.println("Y.test()"); }
+ }
+}
+
+public class Z implements X, Y {
+ public static void main(String[] args) throws Exception { new Z().test(); }
+}
diff --git a/tests/bugs161/pr233838/Z2.java b/tests/bugs161/pr233838/Z2.java
new file mode 100644
index 000000000..9123a3485
--- /dev/null
+++ b/tests/bugs161/pr233838/Z2.java
@@ -0,0 +1,17 @@
+interface X {
+ static aspect IMPL {
+ public void X.test() { System.out.println("X.test()"); }
+ }
+}
+
+interface Y {
+ static aspect IMPL {
+ declare precedence : Y.IMPL, X.IMPL;
+
+ public void Y.test() { System.out.println("Y.test()"); }
+ }
+}
+
+public class Z2 implements X, Y {
+ public static void main(String[] args) throws Exception { new Z2().test(); }
+}