diff options
author | aclement <aclement> | 2010-05-13 04:06:42 +0000 |
---|---|---|
committer | aclement <aclement> | 2010-05-13 04:06:42 +0000 |
commit | 50b9cc3c0afda97d251f884e4173e04c6c8c25ac (patch) | |
tree | 7d25ca37b82226e073060705fce2651494732daf /tests/features167/overweaving/itds1 | |
parent | 27fa7e935696eda000b944d163ce1f3c4fa5afa5 (diff) | |
download | aspectj-50b9cc3c0afda97d251f884e4173e04c6c8c25ac.tar.gz aspectj-50b9cc3c0afda97d251f884e4173e04c6c8c25ac.zip |
more overweaving tests and fixes: method call/field get/set
Diffstat (limited to 'tests/features167/overweaving/itds1')
-rw-r--r-- | tests/features167/overweaving/itds1/A.aj | 16 | ||||
-rw-r--r-- | tests/features167/overweaving/itds1/C.java | 13 | ||||
-rw-r--r-- | tests/features167/overweaving/itds1/X.aj | 7 | ||||
-rw-r--r-- | tests/features167/overweaving/itds1/aop.xml | 10 |
4 files changed, 46 insertions, 0 deletions
diff --git a/tests/features167/overweaving/itds1/A.aj b/tests/features167/overweaving/itds1/A.aj new file mode 100644 index 000000000..b7e3fcb91 --- /dev/null +++ b/tests/features167/overweaving/itds1/A.aj @@ -0,0 +1,16 @@ +package com.andy; + +@interface Anno {} + +aspect A { + declare @type: com.andy.C: @Anno; + + int C.i = 5; + + public void C.m() {} + + before(): execution(* C.main(..)) { + System.out.println("A:"+thisJoinPointStaticPart); + } + +} diff --git a/tests/features167/overweaving/itds1/C.java b/tests/features167/overweaving/itds1/C.java new file mode 100644 index 000000000..8c760bb60 --- /dev/null +++ b/tests/features167/overweaving/itds1/C.java @@ -0,0 +1,13 @@ +package com.andy; + +public class C { + public String name = "andy"; + + public static void main(String []argv) { + new C().run(); + } + + public void run() { + System.out.println("hello "+name); + } +} diff --git a/tests/features167/overweaving/itds1/X.aj b/tests/features167/overweaving/itds1/X.aj new file mode 100644 index 000000000..9c576aeed --- /dev/null +++ b/tests/features167/overweaving/itds1/X.aj @@ -0,0 +1,7 @@ +aspect X { +before(): cflow(execution(* main(..))) && execution(* *(..)) { + System.out.println("X:"+thisJoinPointStaticPart); +} + +} + diff --git a/tests/features167/overweaving/itds1/aop.xml b/tests/features167/overweaving/itds1/aop.xml new file mode 100644 index 000000000..b199c94ea --- /dev/null +++ b/tests/features167/overweaving/itds1/aop.xml @@ -0,0 +1,10 @@ +<aspectj> +<aspects> + <aspect name="X"/> + <aspect name="com.andy.A"/> +</aspects> +<weaver options="-verbose -Xset:overWeaving=true"> + <dump within="*" beforeandafter="true"/> +</weaver> + +</aspectj> |