aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/bugs193/389678/OverWeave_1/src/Application.java9
-rw-r--r--tests/bugs193/389678/OverWeave_1/src/MyAspect.aj5
-rw-r--r--tests/bugs193/389678/OverWeave_2/src/MyAspect2.aj5
-rw-r--r--tests/bugs193/389678/OverWeave_4/src/MyAspect3.aj5
-rw-r--r--tests/bugs193/389678/ow1.jarbin0 -> 2828 bytes
-rw-r--r--tests/bugs193/389678/ow2.jarbin0 -> 1630 bytes
-rw-r--r--tests/bugs193/389678/ow4.jarbin0 -> 1630 bytes
-rwxr-xr-xtests/bugs193/389678/run.sh10
-rwxr-xr-xtests/bugs193/389678/runow.sh4
9 files changed, 38 insertions, 0 deletions
diff --git a/tests/bugs193/389678/OverWeave_1/src/Application.java b/tests/bugs193/389678/OverWeave_1/src/Application.java
new file mode 100644
index 000000000..1d98f01e7
--- /dev/null
+++ b/tests/bugs193/389678/OverWeave_1/src/Application.java
@@ -0,0 +1,9 @@
+public class Application {
+ public static void main(String[] args) {
+ sayHelloTo("world");
+ }
+
+ public static void sayHelloTo(String subject) {
+ System.out.println("Hello " + subject + "!");
+ }
+}
diff --git a/tests/bugs193/389678/OverWeave_1/src/MyAspect.aj b/tests/bugs193/389678/OverWeave_1/src/MyAspect.aj
new file mode 100644
index 000000000..cb9d42081
--- /dev/null
+++ b/tests/bugs193/389678/OverWeave_1/src/MyAspect.aj
@@ -0,0 +1,5 @@
+public aspect MyAspect {
+ before() : execution(* Application.*(..)) {
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);
+ }
+}
diff --git a/tests/bugs193/389678/OverWeave_2/src/MyAspect2.aj b/tests/bugs193/389678/OverWeave_2/src/MyAspect2.aj
new file mode 100644
index 000000000..b59a2464f
--- /dev/null
+++ b/tests/bugs193/389678/OverWeave_2/src/MyAspect2.aj
@@ -0,0 +1,5 @@
+public aspect MyAspect2 {
+ before() : execution(* *(..)) {
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);
+ }
+}
diff --git a/tests/bugs193/389678/OverWeave_4/src/MyAspect3.aj b/tests/bugs193/389678/OverWeave_4/src/MyAspect3.aj
new file mode 100644
index 000000000..2c40e42c6
--- /dev/null
+++ b/tests/bugs193/389678/OverWeave_4/src/MyAspect3.aj
@@ -0,0 +1,5 @@
+public aspect MyAspect3 {
+ before() : execution(* *(..)) {
+ System.out.println(this.getClass().getName() + " -> " + thisJoinPointStaticPart);
+ }
+}
diff --git a/tests/bugs193/389678/ow1.jar b/tests/bugs193/389678/ow1.jar
new file mode 100644
index 000000000..acb5cc6d4
--- /dev/null
+++ b/tests/bugs193/389678/ow1.jar
Binary files differ
diff --git a/tests/bugs193/389678/ow2.jar b/tests/bugs193/389678/ow2.jar
new file mode 100644
index 000000000..b04346f1e
--- /dev/null
+++ b/tests/bugs193/389678/ow2.jar
Binary files differ
diff --git a/tests/bugs193/389678/ow4.jar b/tests/bugs193/389678/ow4.jar
new file mode 100644
index 000000000..85f5a057f
--- /dev/null
+++ b/tests/bugs193/389678/ow4.jar
Binary files differ
diff --git a/tests/bugs193/389678/run.sh b/tests/bugs193/389678/run.sh
new file mode 100755
index 000000000..883bc7aa2
--- /dev/null
+++ b/tests/bugs193/389678/run.sh
@@ -0,0 +1,10 @@
+echo "ow1"
+ajc -1.8 -sourceroots OverWeave_1/src -outjar ow1.jar -showWeaveInfo
+echo "ow2"
+ajc -1.8 -sourceroots OverWeave_2/src -outjar ow2.jar -showWeaveInfo
+echo "ow4 build"
+ajc -1.8 -sourceroots OverWeave_4/src -outjar ow4.jar -showWeaveInfo
+echo "ow3"
+ajc -1.8 -d out -inpath ow1.jar -aspectpath ow2.jar -showWeaveInfo -sourceroots OverWeave_3/src -outjar ow3.jar
+
+java -classpath out:/Users/aclement/installs/aspectj192/lib/aspectjrt.jar:ow2.jar Application
diff --git a/tests/bugs193/389678/runow.sh b/tests/bugs193/389678/runow.sh
new file mode 100755
index 000000000..c2ca8d3b1
--- /dev/null
+++ b/tests/bugs193/389678/runow.sh
@@ -0,0 +1,4 @@
+ajc -1.8 -sourceroots OverWeave_1/src -outjar ow1.jar
+ajc -1.8 -sourceroots OverWeave_2/src -outjar ow2.jar
+ajc -1.8 -Xset:overWeaving=true -d out -inpath ow1.jar -aspectpath ow2.jar -sourceroots OverWeave_3/src
+java -classpath out:/Users/aclement/installs/aspectj192/lib/aspectjrt.jar:ow2.jar Application