From 538f656d070067171ca7763e73dc48d451707177 Mon Sep 17 00:00:00 2001 From: jhugunin Date: Mon, 16 Dec 2002 22:56:16 +0000 Subject: excluding preinitialization join points from around advice since that's not implemented (and the test case isn't expecting these newly added join points) --- tests/new/PR559.java | 14 +++++++------- 1 file 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"); -- cgit v1.2.3