diff options
author | jhugunin <jhugunin> | 2004-01-28 00:36:05 +0000 |
---|---|---|
committer | jhugunin <jhugunin> | 2004-01-28 00:36:05 +0000 |
commit | 6cceb1b9c3b53e92166d61435f28318e2b9a8872 (patch) | |
tree | be2ceede849425dd4a40f9b103a059190b90d589 /tests/new/AfterReturningConstructor.java | |
parent | 098317da0a9bf6b3b12ca3f75c20b74fe42c0374 (diff) | |
download | aspectj-6cceb1b9c3b53e92166d61435f28318e2b9a8872.tar.gz aspectj-6cceb1b9c3b53e92166d61435f28318e2b9a8872.zip |
fix for Bugzilla Bug 49295
duplicate warning or second join point for constructor-execution
Diffstat (limited to 'tests/new/AfterReturningConstructor.java')
-rw-r--r-- | tests/new/AfterReturningConstructor.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/new/AfterReturningConstructor.java b/tests/new/AfterReturningConstructor.java index e0fad5e0e..3d87758e5 100644 --- a/tests/new/AfterReturningConstructor.java +++ b/tests/new/AfterReturningConstructor.java @@ -32,8 +32,8 @@ class U { static final String afterThrowing = "after() throwing(): "; static final String c = "C()"; static final String i = "I()"; - static final String cjp = "execution(" + c + ")"; - static final String ijp = "execution(" + i + ")"; + static final String cjp = "initialization(" + c + ")"; + static final String ijp = "initialization(" + i + ")"; static void e(String event) { //System.err.println("act event: " + event); // XXX @@ -46,8 +46,8 @@ class U { } aspect A { - /** must pick out both interface and implementor constructor execution */ - pointcut pc(): execution(new(..)) && !within(A); + /** must pick out both interface and implementor initializers */ + pointcut pc(): initialization(new(..)) && !within(A); before(): pc() { U.e(U.before + thisJoinPoint); |