]> source.dussan.org Git - aspectj.git/commitdiff
testcode for 119019
authoraclement <aclement>
Sun, 4 Dec 2005 13:17:22 +0000 (13:17 +0000)
committeraclement <aclement>
Sun, 4 Dec 2005 13:17:22 +0000 (13:17 +0000)
tests/bugs150/pr119019/bar/TargetITDClass.java [new file with mode: 0644]
tests/bugs150/pr119019/foo/ITDWithACall.aj [new file with mode: 0644]

diff --git a/tests/bugs150/pr119019/bar/TargetITDClass.java b/tests/bugs150/pr119019/bar/TargetITDClass.java
new file mode 100644 (file)
index 0000000..7026666
--- /dev/null
@@ -0,0 +1,5 @@
+package bar;
+
+public class TargetITDClass {
+
+}
diff --git a/tests/bugs150/pr119019/foo/ITDWithACall.aj b/tests/bugs150/pr119019/foo/ITDWithACall.aj
new file mode 100644 (file)
index 0000000..dcf6078
--- /dev/null
@@ -0,0 +1,20 @@
+package foo;
+
+import bar.TargetITDClass;
+
+public aspect ITDWithACall {
+
+  public static void main(String []argv) {
+    new TargetITDClass().doSomething("hello");
+  }
+
+    public void TargetITDClass.doSomething(String param) {
+        String changedParam= changeParam(param);
+    }
+
+
+    protected static String changeParam(String param) { /// <= HERE
+        return param + "-modified";
+    }
+       
+}