From: aclement Date: Wed, 23 Nov 2005 09:02:43 +0000 (+0000) Subject: work in progress - not yet active. X-Git-Tag: V1_5_0RC1~138 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=f936344ec38e6e0f677c8d5c7993841224e59f50;p=aspectj.git work in progress - not yet active. --- 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) {