From 52aa66ebc0ee454cf45b6ae6c77efb563e43e1d6 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Tue, 7 Jan 2003 23:10:23 +0000 Subject: [PATCH] avoiding aspect advising its own constructor --- tests/new/DeclaredExcs.java | 8 ++++---- 1 file 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(); -- 2.39.5