aboutsummaryrefslogtreecommitdiffstats
path: root/tests/new/EachJVMOnSelf.java
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-23 19:25:45 +0000
committerjhugunin <jhugunin>2002-12-23 19:25:45 +0000
commit52ccc9be332715a2d8decfe4ee4ef3ffbad12426 (patch)
treecbde377f429d93e6122f99a0cb826c0fcb5760c5 /tests/new/EachJVMOnSelf.java
parent7dd2994ade6aa152e3e579119158d9a338c06b44 (diff)
downloadaspectj-52ccc9be332715a2d8decfe4ee4ef3ffbad12426.tar.gz
aspectj-52ccc9be332715a2d8decfe4ee4ef3ffbad12426.zip
matching new semantics of persingleton aspect advising its own initialization
Diffstat (limited to 'tests/new/EachJVMOnSelf.java')
-rw-r--r--tests/new/EachJVMOnSelf.java4
1 files 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();
}
}