From f936344ec38e6e0f677c8d5c7993841224e59f50 Mon Sep 17 00:00:00 2001 From: aclement Date: Wed, 23 Nov 2005 09:02:43 +0000 Subject: [PATCH] work in progress - not yet active. --- tests/java5/generics/genericaspects/GenericAspectY.aj | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/tests/java5/generics/genericaspects/GenericAspectY.aj b/tests/java5/generics/genericaspects/GenericAspectY.aj index 38211f7ec..327d434eb 100644 --- a/tests/java5/generics/genericaspects/GenericAspectY.aj +++ b/tests/java5/generics/genericaspects/GenericAspectY.aj @@ -82,6 +82,9 @@ import org.aspectj.lang.annotation.*; public pointcut addingChild(Parent p, Child c) : execution(* Parent.addChild(Child)) && this(p) && args(c); + // Something a little more simple... + public pointcut addingChild2(Parent p): execution(* Parent.addChild(Child)) && this(p); + /** * Matches at a removeChild join point for the parent type P and child type C */ @@ -93,8 +96,10 @@ import org.aspectj.lang.annotation.*; aspect GenericAspectX extends ParentChildRelationship { // Advice to trigger weave infos - before(Top p,Bottom c): ParentChildRelationship.addingChild(p,c) {} - before(Top p,Bottom c): ParentChildRelationship.removingChild(p,c) {} + before(Top p): ParentChildRelationship.addingChild2(p) {} + +// before(Top p,Bottom c): ParentChildRelationship.addingChild(p,c) {} +// before(Top p,Bottom c): ParentChildRelationship.removingChild(p,c) {} public static void main(String []argv) { -- 2.39.5