From 52ccc9be332715a2d8decfe4ee4ef3ffbad12426 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 23 Dec 2002 19:25:45 +0000 Subject: [PATCH] matching new semantics of persingleton aspect advising its own initialization --- tests/new/EachJVMOnSelf.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/new/EachJVMOnSelf.java b/tests/new/EachJVMOnSelf.java index cbbd1eeae..01fc8bba6 100644 --- a/tests/new/EachJVMOnSelf.java +++ b/tests/new/EachJVMOnSelf.java @@ -11,8 +11,8 @@ public class EachJVMOnSelf { aspect A issingleton() { String advisedNewClass = null; - after () returning (): this(*) && execution(new(..)) { - advisedNewClass = thisJoinPoint.getSourceLocation().getWithinType().getName(); + after () returning (): this(*) && execution(new(..)) && !this(A) { + advisedNewClass = thisJoinPoint.getSourceLocation().getWithinType().getName(); } } -- 2.39.5