aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhugunin <jhugunin>2002-12-16 22:56:16 +0000
committerjhugunin <jhugunin>2002-12-16 22:56:16 +0000
commit538f656d070067171ca7763e73dc48d451707177 (patch)
treecdd446f4c62baa2e52de63ccbc3ede186d08bbb9
parent123003b8e568104a6cbe6fb439c02fdf5bd4181b (diff)
downloadaspectj-538f656d070067171ca7763e73dc48d451707177.tar.gz
aspectj-538f656d070067171ca7763e73dc48d451707177.zip
excluding preinitialization join points from around advice since
that's not implemented (and the test case isn't expecting these newly added join points)
-rw-r--r--tests/new/PR559.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/new/PR559.java b/tests/new/PR559.java
index 24a371d38..a612c9b81 100644
--- a/tests/new/PR559.java
+++ b/tests/new/PR559.java
@@ -32,7 +32,7 @@ public class PR559 {
}
interface AspectMarker {
- pointcut notInAspect() : ! within(AspectMarker+);
+ pointcut notInAspect() : ! within(AspectMarker+) && !preinitialization(new(..));
pointcut allTarget() : execution(* Target.*(..)) ;
pointcut allTargetFlow() : cflow(allTarget());
pointcut inTarget() : notInAspect() && allTarget();
@@ -45,17 +45,17 @@ class Target {
class Base implements AspectMarker {
pointcut TargetRun ()
- : within(Target) && execution(* *(..)) && !within(AspectMarker+);
+ : within(Target) && execution(* *(..)) && notInAspect() ;
;
pointcut TargetRunFlow ()
- : cflow(within(Target) && execution(* *(..))) && !within(AspectMarker+)
+ : cflow(within(Target) && execution(* *(..))) && notInAspect()
;
}
/** @testcase PR#559 subaspect advice not run for superclass cflow-based pointcut */
aspect Derived extends Base {
pointcut TargetSubRunFlow ()
- : cflow(within(Target) && execution(* *(..))) && !within(AspectMarker+)
+ : cflow(within(Target) && execution(* *(..))) && notInAspect()
;
Object around () : inTarget() {
Tester.event("inTarget class");
@@ -81,17 +81,17 @@ aspect Derived extends Base {
abstract aspect BaseAspect implements AspectMarker {
pointcut TargetRun ()
- : within(Target) && execution(* *(..)) && !within(AspectMarker+);
+ : within(Target) && execution(* *(..)) && notInAspect() ;
;
pointcut TargetRunFlow ()
- : cflow(within(Target) && execution(* *(..))) && !within(AspectMarker+)
+ : cflow(within(Target) && execution(* *(..))) && notInAspect()
;
}
/** @testcase PR#559 subaspect advice not run for superaspect cflow-based pointcut */
aspect DerivedAspect extends BaseAspect implements AspectMarker {
pointcut TargetSubRunFlow ()
- : cflow(within(Target) && execution(* *(..))) && !within(AspectMarker+)
+ : cflow(within(Target) && execution(* *(..))) && notInAspect()
;
Object around () : TargetRun() {
Tester.event("target aspect");