aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-12 19:58:09 +0000
committeraclement <aclement>2006-10-12 19:58:09 +0000
commite6a707af677f170f3dbf41081f6ff296b90437d1 (patch)
treefba0b4487b2ff98d9df0864aaa882f4ead167684 /tests/bugs153
parentf80ae0089b2a8f57653348b76ef1b7f89aebf2ef (diff)
downloadaspectj-e6a707af677f170f3dbf41081f6ff296b90437d1.tar.gz
aspectj-e6a707af677f170f3dbf41081f6ff296b90437d1.zip
test and fix for 160674: simpler strategy for loading bytecode on SAPBEFORE_133532
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr160674/MyAspect.java12
-rw-r--r--tests/bugs153/pr160674/MyClass.java12
-rw-r--r--tests/bugs153/pr160674/aop.xml7
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs153/pr160674/MyAspect.java b/tests/bugs153/pr160674/MyAspect.java
new file mode 100644
index 000000000..cbad3a906
--- /dev/null
+++ b/tests/bugs153/pr160674/MyAspect.java
@@ -0,0 +1,12 @@
+package a;
+
+import org.aspectj.lang.annotation.*;
+
+@Aspect
+public class MyAspect {
+ //before(): call(* print(..)) {
+ @Before("call(* print(..))")
+ public void m() {
+ System.out.println("advice running");
+ }
+}
diff --git a/tests/bugs153/pr160674/MyClass.java b/tests/bugs153/pr160674/MyClass.java
new file mode 100644
index 000000000..5909e4169
--- /dev/null
+++ b/tests/bugs153/pr160674/MyClass.java
@@ -0,0 +1,12 @@
+package a;
+
+public class MyClass {
+ public static void main(String []argv) {
+ new MyClass().print("hello");
+ new MyClass().print("world");
+ }
+
+ public void print(String msg) {
+ System.out.println(msg);
+ }
+}
diff --git a/tests/bugs153/pr160674/aop.xml b/tests/bugs153/pr160674/aop.xml
new file mode 100644
index 000000000..ee28eae0f
--- /dev/null
+++ b/tests/bugs153/pr160674/aop.xml
@@ -0,0 +1,7 @@
+<aspectj>
+ <weaver options="-Xset:bcelRepositoryCaching=false -verbose">
+ </weaver>
+ <aspects>
+ <aspect name="a.MyAspect"/>
+ </aspects>
+</aspectj>