]> source.dussan.org Git - aspectj.git/commitdiff
223094 - test case
authoraclement <aclement>
Tue, 18 Mar 2008 21:15:11 +0000 (21:15 +0000)
committeraclement <aclement>
Tue, 18 Mar 2008 21:15:11 +0000 (21:15 +0000)
tests/bugs160/pr223094/A.java [new file with mode: 0644]
tests/bugs160/pr223094/B.java [new file with mode: 0644]
tests/bugs160/pr223094/aop.xml [new file with mode: 0644]

diff --git a/tests/bugs160/pr223094/A.java b/tests/bugs160/pr223094/A.java
new file mode 100644 (file)
index 0000000..8d6dcbc
--- /dev/null
@@ -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 (file)
index 0000000..da87f7e
--- /dev/null
@@ -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 (file)
index 0000000..c67e032
--- /dev/null
@@ -0,0 +1,13 @@
+<?xml version="1.0"?>
+<aspectj>
+
+       
+       <weaver options="-verbose -showWeaveInfo">
+       </weaver>
+       
+       <aspects>
+       <aspect name="p.B"/>
+       </aspects>
+
+</aspectj>
+