aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authoraclement <aclement>2005-11-23 09:02:43 +0000
committeraclement <aclement>2005-11-23 09:02:43 +0000
commitf936344ec38e6e0f677c8d5c7993841224e59f50 (patch)
tree649f647c8baedb751a416fb3a111cf13c6dccdce /tests
parenta5ac5af396426f2049abe52036748bd344a7d1fe (diff)
downloadaspectj-f936344ec38e6e0f677c8d5c7993841224e59f50.tar.gz
aspectj-f936344ec38e6e0f677c8d5c7993841224e59f50.zip
work in progress - not yet active.
Diffstat (limited to 'tests')
-rw-r--r--tests/java5/generics/genericaspects/GenericAspectY.aj9
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) {