]> source.dussan.org Git - aspectj.git/commitdiff
230075: testcode
authoraclement <aclement>
Tue, 10 Jun 2008 22:45:55 +0000 (22:45 +0000)
committeraclement <aclement>
Tue, 10 Jun 2008 22:45:55 +0000 (22:45 +0000)
tests/bugs161/pr230075/A.java [new file with mode: 0644]
tests/bugs161/pr230075/B.java [new file with mode: 0644]
tests/bugs161/pr230075/C.java [new file with mode: 0644]
tests/bugs161/pr230075/X.java [new file with mode: 0644]

diff --git a/tests/bugs161/pr230075/A.java b/tests/bugs161/pr230075/A.java
new file mode 100644 (file)
index 0000000..a3f6189
--- /dev/null
@@ -0,0 +1,3 @@
+package a.a;
+public class A extends a.B {
+}
diff --git a/tests/bugs161/pr230075/B.java b/tests/bugs161/pr230075/B.java
new file mode 100644 (file)
index 0000000..1b13fdb
--- /dev/null
@@ -0,0 +1,4 @@
+package a;
+public abstract class B {
+  protected boolean test() { return true; }
+}
diff --git a/tests/bugs161/pr230075/C.java b/tests/bugs161/pr230075/C.java
new file mode 100644 (file)
index 0000000..6ff5dc9
--- /dev/null
@@ -0,0 +1,13 @@
+package a;
+
+import a.a.A;
+public class C {
+  protected A a = new A();
+ public void run() {
+   a.test();
+  }
+
+  public static void main(String []argv) {
+    new C().run();
+  }
+}
diff --git a/tests/bugs161/pr230075/X.java b/tests/bugs161/pr230075/X.java
new file mode 100644 (file)
index 0000000..583ae8c
--- /dev/null
@@ -0,0 +1,3 @@
+aspect X {
+  Object around(): call(* test(..)) { return proceed();}
+}