aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2003-01-07 23:10:23 +0000
committerjhugunin <jhugunin>2003-01-07 23:10:23 +0000
commit52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6 (patch)
tree4ae5ffb010ab75922a39443f6c7d193a0977691a /tests/new
parent67a0ea0eaef0a0f7ce15522af2372f6cc0f09cbf (diff)
downloadaspectj-52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6.tar.gz
aspectj-52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6.zip
avoiding aspect advising its own constructor
Diffstat (limited to 'tests/new')
-rw-r--r--tests/new/DeclaredExcs.java8
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();