diff options
author | jhugunin <jhugunin> | 2003-01-07 23:10:23 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2003-01-07 23:10:23 +0000 |
commit | 52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6 (patch) | |
tree | 4ae5ffb010ab75922a39443f6c7d193a0977691a /tests/new | |
parent | 67a0ea0eaef0a0f7ce15522af2372f6cc0f09cbf (diff) | |
download | aspectj-52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6.tar.gz aspectj-52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6.zip |
avoiding aspect advising its own constructor
Diffstat (limited to 'tests/new')
-rw-r--r-- | tests/new/DeclaredExcs.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/new/DeclaredExcs.java b/tests/new/DeclaredExcs.java index 21b1f1009..f6f13c305 100644 --- a/tests/new/DeclaredExcs.java +++ b/tests/new/DeclaredExcs.java @@ -81,13 +81,13 @@ class MyException extends Exception { } aspect A { - before (): this(*) && execution(* *(..)) || execution(new(..)) { + before (): (this(*) && execution(* *(..)) || execution(new(..))) && !within(A) { //System.out.println("entering: "+thisJoinPoint); } - after (): this(*) && execution(* *(..)) || execution(new(..)) { + + after (): (this(*) && execution(* *(..)) || execution(new(..))) && !within(A) { //System.out.println("exiting: "+thisJoinPoint); - } - + } Object around(): this(*) && call(* *(..)) { //System.out.println("start around: "+thisJoinPoint); Object ret = proceed(); |