]> source.dussan.org Git - aspectj.git/commitdiff
matching new semantics of persingleton aspect advising its own initialization
authorjhugunin <jhugunin>
Mon, 23 Dec 2002 19:25:45 +0000 (19:25 +0000)
committerjhugunin <jhugunin>
Mon, 23 Dec 2002 19:25:45 +0000 (19:25 +0000)
tests/new/EachJVMOnSelf.java

index cbbd1eeaeb8ba7c90533094f5ad9f6ebc1822ea4..01fc8bba682530374697a91fbd4d2690d7d724c8 100644 (file)
@@ -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();
     }
 }