]> source.dussan.org Git - aspectj.git/commitdiff
260384: testcode and fix
authoraclement <aclement>
Mon, 12 Jan 2009 20:25:14 +0000 (20:25 +0000)
committeraclement <aclement>
Mon, 12 Jan 2009 20:25:14 +0000 (20:25 +0000)
tests/bugs164/pr260384/Broken.java [new file with mode: 0644]
tests/bugs164/pr260384/Broken2.java [new file with mode: 0644]

diff --git a/tests/bugs164/pr260384/Broken.java b/tests/bugs164/pr260384/Broken.java
new file mode 100644 (file)
index 0000000..c3e9cb1
--- /dev/null
@@ -0,0 +1,18 @@
+
+interface I {
+       void getCode();
+}
+
+abstract class C1 implements I {
+}
+
+abstract class C2 extends C1 {
+  public void m() {
+         getCode();
+  }
+}
+
+
+aspect X {
+       before(int i): args(i) { }// call(* *(..))  && args(i) {}
+}
diff --git a/tests/bugs164/pr260384/Broken2.java b/tests/bugs164/pr260384/Broken2.java
new file mode 100644 (file)
index 0000000..80ffb7d
--- /dev/null
@@ -0,0 +1,18 @@
+
+interface I {
+       void getCode();
+}
+
+abstract class C1 implements I {
+}
+
+abstract class C2 extends C1 {
+  public void m() {
+         getCode();
+  }
+}
+
+
+aspect X {
+       before(): call(* g*(..)) {}
+}