summaryrefslogtreecommitdiffstats
path: root/tests/bugs160
diff options
context:
space:
mode:
authoraclement <aclement>2008-03-18 21:15:11 +0000
committeraclement <aclement>2008-03-18 21:15:11 +0000
commit97239158227f2170d33f4aba0dae7b01f1508de0 (patch)
tree00aa595361241de9305ec3e570d29d34cccbc7e7 /tests/bugs160
parente95bd7610b7da1aae7aa6fc309f78bca3d76ce85 (diff)
downloadaspectj-97239158227f2170d33f4aba0dae7b01f1508de0.tar.gz
aspectj-97239158227f2170d33f4aba0dae7b01f1508de0.zip
223094 - test case
Diffstat (limited to 'tests/bugs160')
-rw-r--r--tests/bugs160/pr223094/A.java8
-rw-r--r--tests/bugs160/pr223094/B.java12
-rw-r--r--tests/bugs160/pr223094/aop.xml13
3 files changed, 33 insertions, 0 deletions
diff --git a/tests/bugs160/pr223094/A.java b/tests/bugs160/pr223094/A.java
new file mode 100644
index 000000000..8d6dcbcc2
--- /dev/null
+++ b/tests/bugs160/pr223094/A.java
@@ -0,0 +1,8 @@
+package p;
+
+public class A {
+ public static void main(String []argv) {
+ ((IFace)new A()).foo();
+ System.out.println("ok");
+ }
+}
diff --git a/tests/bugs160/pr223094/B.java b/tests/bugs160/pr223094/B.java
new file mode 100644
index 000000000..da87f7e5d
--- /dev/null
+++ b/tests/bugs160/pr223094/B.java
@@ -0,0 +1,12 @@
+package p;
+
+aspect B extends Y {
+ declare parents: A* implements IFace;
+
+}
+
+abstract aspect Y {
+ public void IFace.foo() {}
+}
+
+interface IFace {}
diff --git a/tests/bugs160/pr223094/aop.xml b/tests/bugs160/pr223094/aop.xml
new file mode 100644
index 000000000..c67e03296
--- /dev/null
+++ b/tests/bugs160/pr223094/aop.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<aspectj>
+
+
+ <weaver options="-verbose -showWeaveInfo">
+ </weaver>
+
+ <aspects>
+ <aspect name="p.B"/>
+ </aspects>
+
+</aspectj>
+