aboutsummaryrefslogtreecommitdiffstats
path: root/tests/features167
diff options
context:
space:
mode:
authoraclement <aclement>2010-05-13 17:21:53 +0000
committeraclement <aclement>2010-05-13 17:21:53 +0000
commit511e100a81fd864f2f989becfe1405f1be9bb3e0 (patch)
tree9a27e16915c13cd130950646b8edabbf22e85416 /tests/features167
parent0fdf5483d94c50119dab88c35dbaaa62650bd7eb (diff)
downloadaspectj-511e100a81fd864f2f989becfe1405f1be9bb3e0.tar.gz
aspectj-511e100a81fd864f2f989becfe1405f1be9bb3e0.zip
overweaving and tjp
Diffstat (limited to 'tests/features167')
-rw-r--r--tests/features167/overweaving/callsTJP/A.aj3
-rw-r--r--tests/features167/overweaving/callsTJP/B.aj4
-rw-r--r--tests/features167/overweaving/callsTJP/Class1.java5
-rw-r--r--tests/features167/overweaving/callsTJP/Class2.java5
-rw-r--r--tests/features167/overweaving/callsTJP/aop.xml12
-rw-r--r--tests/features167/overweaving/getsetTJP/A.aj3
-rw-r--r--tests/features167/overweaving/getsetTJP/B.aj3
-rw-r--r--tests/features167/overweaving/getsetTJP/Class1.java6
-rw-r--r--tests/features167/overweaving/getsetTJP/Class2.java6
-rw-r--r--tests/features167/overweaving/getsetTJP/aop.xml12
10 files changed, 59 insertions, 0 deletions
diff --git a/tests/features167/overweaving/callsTJP/A.aj b/tests/features167/overweaving/callsTJP/A.aj
new file mode 100644
index 000000000..87bbabf6c
--- /dev/null
+++ b/tests/features167/overweaving/callsTJP/A.aj
@@ -0,0 +1,3 @@
+public aspect A {
+ before(): !cflow(adviceexecution()) && call(* *(..)) {System.out.println("A:"+thisJoinPoint);}
+}
diff --git a/tests/features167/overweaving/callsTJP/B.aj b/tests/features167/overweaving/callsTJP/B.aj
new file mode 100644
index 000000000..6c985367b
--- /dev/null
+++ b/tests/features167/overweaving/callsTJP/B.aj
@@ -0,0 +1,4 @@
+public aspect B {
+ declare precedence: B,*;
+ before(): !cflow(adviceexecution()) && call(* *(..)) {System.out.println("B:"+thisJoinPoint);}
+}
diff --git a/tests/features167/overweaving/callsTJP/Class1.java b/tests/features167/overweaving/callsTJP/Class1.java
new file mode 100644
index 000000000..c89605ca0
--- /dev/null
+++ b/tests/features167/overweaving/callsTJP/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/callsTJP/Class2.java b/tests/features167/overweaving/callsTJP/Class2.java
new file mode 100644
index 000000000..b602a2fe9
--- /dev/null
+++ b/tests/features167/overweaving/callsTJP/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/callsTJP/aop.xml b/tests/features167/overweaving/callsTJP/aop.xml
new file mode 100644
index 000000000..956854a9e
--- /dev/null
+++ b/tests/features167/overweaving/callsTJP/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>
diff --git a/tests/features167/overweaving/getsetTJP/A.aj b/tests/features167/overweaving/getsetTJP/A.aj
new file mode 100644
index 000000000..85e5d1f5e
--- /dev/null
+++ b/tests/features167/overweaving/getsetTJP/A.aj
@@ -0,0 +1,3 @@
+public aspect A {
+ before(): !cflow(adviceexecution()) && get(* *) {System.out.println("A:"+thisJoinPoint);}
+}
diff --git a/tests/features167/overweaving/getsetTJP/B.aj b/tests/features167/overweaving/getsetTJP/B.aj
new file mode 100644
index 000000000..5c36c4a76
--- /dev/null
+++ b/tests/features167/overweaving/getsetTJP/B.aj
@@ -0,0 +1,3 @@
+public aspect B {
+ before(): !cflow(adviceexecution()) && set(* *) {System.out.println("B:"+thisJoinPoint);}
+}
diff --git a/tests/features167/overweaving/getsetTJP/Class1.java b/tests/features167/overweaving/getsetTJP/Class1.java
new file mode 100644
index 000000000..029c8d831
--- /dev/null
+++ b/tests/features167/overweaving/getsetTJP/Class1.java
@@ -0,0 +1,6 @@
+public class Class1 {
+ public static String message = "Class1.main";
+ public static void main(String[]argv) {
+ System.out.println(message);
+ }
+}
diff --git a/tests/features167/overweaving/getsetTJP/Class2.java b/tests/features167/overweaving/getsetTJP/Class2.java
new file mode 100644
index 000000000..5e3c6cf3c
--- /dev/null
+++ b/tests/features167/overweaving/getsetTJP/Class2.java
@@ -0,0 +1,6 @@
+public class Class2 {
+ public static String message = "Class2.main";
+ public static void main(String[]argv) {
+ System.out.println(message);
+ }
+}
diff --git a/tests/features167/overweaving/getsetTJP/aop.xml b/tests/features167/overweaving/getsetTJP/aop.xml
new file mode 100644
index 000000000..956854a9e
--- /dev/null
+++ b/tests/features167/overweaving/getsetTJP/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>