aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs153
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs153')
-rw-r--r--tests/bugs153/pr152871/MyAspect.java12
-rw-r--r--tests/bugs153/pr152871/MyClass.java12
-rw-r--r--tests/bugs153/pr152871/aop.xml8
3 files changed, 32 insertions, 0 deletions
diff --git a/tests/bugs153/pr152871/MyAspect.java b/tests/bugs153/pr152871/MyAspect.java
new file mode 100644
index 000000000..cbad3a906
--- /dev/null
+++ b/tests/bugs153/pr152871/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/pr152871/MyClass.java b/tests/bugs153/pr152871/MyClass.java
new file mode 100644
index 000000000..5909e4169
--- /dev/null
+++ b/tests/bugs153/pr152871/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/pr152871/aop.xml b/tests/bugs153/pr152871/aop.xml
new file mode 100644
index 000000000..3ba7ab60e
--- /dev/null
+++ b/tests/bugs153/pr152871/aop.xml
@@ -0,0 +1,8 @@
+<aspectj>
+ <weaver>
+ <exclude within="a..MyAspect"/>
+ </weaver>
+ <aspects>
+ <aspect name="a.MyAspect"/>
+ </aspects>
+</aspectj>