diff options
author | acolyer <acolyer> | 2005-11-08 18:16:25 +0000 |
---|---|---|
committer | acolyer <acolyer> | 2005-11-08 18:16:25 +0000 |
commit | f6968e6f134df55243c451e45c303600560e6d04 (patch) | |
tree | bf03d8d9c72eac969cc2445effb51a35462d4a64 /tests/bugs150 | |
parent | c439e326284d2ffdf4898a50a3d0d5f6a6e99ef1 (diff) | |
download | aspectj-f6968e6f134df55243c451e45c303600560e6d04.tar.gz aspectj-f6968e6f134df55243c451e45c303600560e6d04.zip |
tests for pr104220 - poor toString implementations for adviceexecution join points.
Diffstat (limited to 'tests/bugs150')
-rw-r--r-- | tests/bugs150/Pr104220.aj | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/tests/bugs150/Pr104220.aj b/tests/bugs150/Pr104220.aj new file mode 100644 index 000000000..a48861387 --- /dev/null +++ b/tests/bugs150/Pr104220.aj @@ -0,0 +1,29 @@ +// pr104220 - adviceexecution joinpoint toString forms + +public aspect Pr104220 { + + before() : adviceexecution() && !within(Pr104220) { + System.out.println(thisJoinPoint.getKind()); + System.out.println(thisJoinPoint.toString()); + System.out.println(thisJoinPoint.toShortString()); + System.out.println(thisJoinPoint.toLongString()); + } + + public static void main(String[] args) { + new C().foo(); + } + +} + +class C { + + public void foo() {} + +} + +aspect SomeAspect { + + before() : execution(* foo(..)) {} + +} + |