aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/AroundAll.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/new/AroundAll.java')
-rw-r--r--tests/new/AroundAll.java16
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);