diff options
author | aclement <aclement> | 2008-07-17 17:37:33 +0000 |
---|---|---|
committer | aclement <aclement> | 2008-07-17 17:37:33 +0000 |
commit | ccfe4bf346a7f8145116fcecd68ee93df20f2055 (patch) | |
tree | 91a17d98c1010b2447677800d420888016a9b88b /tests/bugs162 | |
parent | df587ce7e378af478e7ee4eca3e998ea728ab05d (diff) | |
download | aspectj-ccfe4bf346a7f8145116fcecd68ee93df20f2055.tar.gz aspectj-ccfe4bf346a7f8145116fcecd68ee93df20f2055.zip |
198181 - testcode
Diffstat (limited to 'tests/bugs162')
-rw-r--r-- | tests/bugs162/pr198181/A.java | 14 | ||||
-rw-r--r-- | tests/bugs162/pr198181/M.java | 10 | ||||
-rw-r--r-- | tests/bugs162/pr198181/aop.xml | 7 |
3 files changed, 31 insertions, 0 deletions
diff --git a/tests/bugs162/pr198181/A.java b/tests/bugs162/pr198181/A.java new file mode 100644 index 000000000..7168ccfc6 --- /dev/null +++ b/tests/bugs162/pr198181/A.java @@ -0,0 +1,14 @@ +package m; + +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; + +@Aspect("pertarget(execution( public void m.M.run() ))") +public class A { + int i; + @Around("execution( public void m.M.run() )") + public void count() { +// System.out.println(this); + System.out.println("tick " + (i++)); + } +} diff --git a/tests/bugs162/pr198181/M.java b/tests/bugs162/pr198181/M.java new file mode 100644 index 000000000..ce7aff9d2 --- /dev/null +++ b/tests/bugs162/pr198181/M.java @@ -0,0 +1,10 @@ +package m; +public class M { + public void run() { + } + public static void main(String[] args) { + for (int i = 0; i < 3; i++) { + new M().run(); + } + } +} diff --git a/tests/bugs162/pr198181/aop.xml b/tests/bugs162/pr198181/aop.xml new file mode 100644 index 000000000..90fcc9a64 --- /dev/null +++ b/tests/bugs162/pr198181/aop.xml @@ -0,0 +1,7 @@ +<?xml version="1.0"?> +<aspectj> + <aspects> + <aspect name="m.A"/> + </aspects> + <weaver options="-verbose -showWeaveInfo"/> +</aspectj>
\ No newline at end of file |