aboutsummaryrefslogtreecommitdiffstats
path: root/tests/ltw/hier/child
diff options
context:
space:
mode:
authoraclement <aclement>2006-08-14 13:26:04 +0000
committeraclement <aclement>2006-08-14 13:26:04 +0000
commit0adc866c0f8b8eb0f9d398898c052a3376936b8d (patch)
tree246136fcc556f4f67cc1a92c11ca989cac9168c2 /tests/ltw/hier/child
parent11fe8eb9db9ca99da426b3f58c51b4315af5a83b (diff)
downloadaspectj-0adc866c0f8b8eb0f9d398898c052a3376936b8d.tar.gz
aspectj-0adc866c0f8b8eb0f9d398898c052a3376936b8d.zip
testcode for call and decp LTW 133770
Diffstat (limited to 'tests/ltw/hier/child')
-rw-r--r--tests/ltw/hier/child/Advisor.aj23
-rw-r--r--tests/ltw/hier/child/Executor.aj20
2 files changed, 43 insertions, 0 deletions
diff --git a/tests/ltw/hier/child/Advisor.aj b/tests/ltw/hier/child/Advisor.aj
new file mode 100644
index 000000000..d7b6b33ac
--- /dev/null
+++ b/tests/ltw/hier/child/Advisor.aj
@@ -0,0 +1,23 @@
+/*******************************************************************************
+ * Copyright (c) 2006 Contributors.
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ron Bodkin
+ */
+package child;
+
+import util.A;
+import util.T;
+
+aspect Advisor {
+ declare parents: A* implements T;
+
+ before() : call(* T+.*(..)) {
+ System.out.println("T call");
+ }
+}
diff --git a/tests/ltw/hier/child/Executor.aj b/tests/ltw/hier/child/Executor.aj
new file mode 100644
index 000000000..74a90a07a
--- /dev/null
+++ b/tests/ltw/hier/child/Executor.aj
@@ -0,0 +1,20 @@
+/*******************************************************************************
+ * Copyright (c) 2006 Contributors.
+ * All rights reserved.
+ * This program and the accompanying materials are made available
+ * under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution and is available at
+ * http://eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Ron Bodkin
+ */
+package child;
+
+import util.A;
+
+public class Executor implements Runnable {
+ public void run() {
+ new A().foo();
+ }
+}