diff options
author | aclement <aclement> | 2005-11-23 09:02:43 +0000 |
---|---|---|
committer | aclement <aclement> | 2005-11-23 09:02:43 +0000 |
commit | f936344ec38e6e0f677c8d5c7993841224e59f50 (patch) | |
tree | 649f647c8baedb751a416fb3a111cf13c6dccdce /tests | |
parent | a5ac5af396426f2049abe52036748bd344a7d1fe (diff) | |
download | aspectj-f936344ec38e6e0f677c8d5c7993841224e59f50.tar.gz aspectj-f936344ec38e6e0f677c8d5c7993841224e59f50.zip |
work in progress - not yet active.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/java5/generics/genericaspects/GenericAspectY.aj | 9 |
1 files 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<Top,Bottom> { // 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) { |