diff options
author | jhugunin <jhugunin> | 2002-12-31 00:54:23 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2002-12-31 00:54:23 +0000 |
commit | 742ae9055d4c9caa2194c64a129ba2d94b0fb6ec (patch) | |
tree | de475a272547be8dafa7d665e71da68edbe73030 /tests/new/AroundAll.java | |
parent | 2df90bb2b709ad637e98ae57c55f307632fae3e2 (diff) | |
download | aspectj-742ae9055d4c9caa2194c64a129ba2d94b0fb6ec.tar.gz aspectj-742ae9055d4c9caa2194c64a129ba2d94b0fb6ec.zip |
can't do around x initialization
Diffstat (limited to 'tests/new/AroundAll.java')
-rw-r--r-- | tests/new/AroundAll.java | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tests/new/AroundAll.java b/tests/new/AroundAll.java index 0200c5e0a..f7e57b5b9 100644 --- a/tests/new/AroundAll.java +++ b/tests/new/AroundAll.java @@ -145,16 +145,20 @@ aspect A { } static boolean test() { return true; } + + // one minimal version +// before(): this(Runnable) && call(* intValue()) { +// +// } - //before(): initialization(C.new(String)) { } - void around(String s): initialization(C.new(String)) && args(s) && if(s.equals("9")) { - log("C.new(9)"); - proceed(s+"1"); - } +// void around(String s): initialization(C.new(String)) && args(s) && if(s.equals("9")) { +// log("C.new(9)"); +// proceed(s+"1"); +// } Object around(): //initialization(C.new(String)) { - if(test()) && !within(A) && !call(* A.*(..)) && !preinitialization(new(..)) { + if(test()) && !within(A) && !call(* A.*(..)) && !initialization(new(..)) && !preinitialization(new(..)) { A.log("enter " + thisJoinPoint); Object ret = proceed(); A.log("exit " + thisJoinPoint); |