aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features167/overweaving/calls
diff options
context:
space:
mode:
authoraclement <aclement>2010-05-13 04:06:42 +0000
committeraclement <aclement>2010-05-13 04:06:42 +0000
commit50b9cc3c0afda97d251f884e4173e04c6c8c25ac (patch)
tree7d25ca37b82226e073060705fce2651494732daf /tests/features167/overweaving/calls
parent27fa7e935696eda000b944d163ce1f3c4fa5afa5 (diff)
downloadaspectj-50b9cc3c0afda97d251f884e4173e04c6c8c25ac.tar.gz
aspectj-50b9cc3c0afda97d251f884e4173e04c6c8c25ac.zip
more overweaving tests and fixes: method call/field get/set
Diffstat (limited to 'tests/features167/overweaving/calls')
-rw-r--r--tests/features167/overweaving/calls/A.aj3
-rw-r--r--tests/features167/overweaving/calls/B.aj3
-rw-r--r--tests/features167/overweaving/calls/Class1.java5
-rw-r--r--tests/features167/overweaving/calls/Class2.java5
-rw-r--r--tests/features167/overweaving/calls/aop.xml12
5 files changed, 28 insertions, 0 deletions
diff --git a/tests/features167/overweaving/calls/A.aj b/tests/features167/overweaving/calls/A.aj
new file mode 100644
index 000000000..7ae3e52c5
--- /dev/null
+++ b/tests/features167/overweaving/calls/A.aj
@@ -0,0 +1,3 @@
+public aspect A {
+ before(): !cflow(adviceexecution()) && call(* *(..)) {System.out.println("A:"+thisJoinPointStaticPart);}
+}
diff --git a/tests/features167/overweaving/calls/B.aj b/tests/features167/overweaving/calls/B.aj
new file mode 100644
index 000000000..fa4b334d0
--- /dev/null
+++ b/tests/features167/overweaving/calls/B.aj
@@ -0,0 +1,3 @@
+public aspect B {
+ before(): !cflow(adviceexecution()) && call(* *(..)) {System.out.println("B:"+thisJoinPointStaticPart);}
+}
diff --git a/tests/features167/overweaving/calls/Class1.java b/tests/features167/overweaving/calls/Class1.java
new file mode 100644
index 000000000..c89605ca0
--- /dev/null
+++ b/tests/features167/overweaving/calls/Class1.java
@@ -0,0 +1,5 @@
+public class Class1 {
+ public static void main(String[]argv) {
+ System.out.println("Class1.main");
+ }
+}
diff --git a/tests/features167/overweaving/calls/Class2.java b/tests/features167/overweaving/calls/Class2.java
new file mode 100644
index 000000000..b602a2fe9
--- /dev/null
+++ b/tests/features167/overweaving/calls/Class2.java
@@ -0,0 +1,5 @@
+public class Class2 {
+ public static void main(String[]argv) {
+ System.out.println("Class2.main");
+ }
+}
diff --git a/tests/features167/overweaving/calls/aop.xml b/tests/features167/overweaving/calls/aop.xml
new file mode 100644
index 000000000..956854a9e
--- /dev/null
+++ b/tests/features167/overweaving/calls/aop.xml
@@ -0,0 +1,12 @@
+<aspectj>
+<aspects>
+ <aspect name="A"/>
+ <aspect name="B"/>
+</aspects>
+<weaver options="-verbose -Xset:overWeaving=true -debug -showWeaveInfo">
+<!--
+ <dump within="*" beforeandafter="true"/>
+-->
+</weaver>
+
+</aspectj>