aboutsummaryrefslogtreecommitdiffstats
path: root/tests/other-systems/ajc-src
diff options
context:
space:
mode:
authorwisberg <wisberg>2002-12-16 18:51:06 +0000
committerwisberg <wisberg>2002-12-16 18:51:06 +0000
commit144143c2970a1e874d74cdbd0f8c622d4282a3c3 (patch)
treeb12383d3d9e76c7e1f25f7fbec83051ef17f81fb /tests/other-systems/ajc-src
parentfafae443719b26159ab2d7dac1c9b46b5e00b671 (diff)
downloadaspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.tar.gz
aspectj-144143c2970a1e874d74cdbd0f8c622d4282a3c3.zip
initial version
Diffstat (limited to 'tests/other-systems/ajc-src')
-rw-r--r--tests/other-systems/ajc-src/FindShowError.java26
-rw-r--r--tests/other-systems/ajc-src/Pcds.java4
2 files changed, 30 insertions, 0 deletions
diff --git a/tests/other-systems/ajc-src/FindShowError.java b/tests/other-systems/ajc-src/FindShowError.java
new file mode 100644
index 000000000..49ed8f4bd
--- /dev/null
+++ b/tests/other-systems/ajc-src/FindShowError.java
@@ -0,0 +1,26 @@
+import org.aspectj.compiler.base.ast.*;
+
+
+
+aspect Wins {
+
+ pointcut showError(ASTObject ast, String msg):
+ within(org.aspectj..*) && target(ast) && args(msg) && call(void showError(String));
+
+ void around(ASTObject ast, String msg): showError(ast, msg) {
+ System.out.println("hi");
+ proceed(ast, msg);
+ }
+}
+
+aspect Loses {
+
+ pointcut showError(ASTObject ast, String msg):
+ target(ast) && args(msg) && call(void showError(String));
+
+ void around(ASTObject ast, String msg): showError(ast, msg) {
+ System.out.println("hi");
+ proceed(ast, msg);
+ }
+}
+
diff --git a/tests/other-systems/ajc-src/Pcds.java b/tests/other-systems/ajc-src/Pcds.java
new file mode 100644
index 000000000..fec81138e
--- /dev/null
+++ b/tests/other-systems/ajc-src/Pcds.java
@@ -0,0 +1,4 @@
+public aspect Pcds {
+ public pointcut withinMe(): within(org.aspectj..*);
+ public pointcut myTarget(): target(org.aspectj..*);
+}