aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs150
diff options
context:
space:
mode:
authoracolyer <acolyer>2005-11-08 18:16:25 +0000
committeracolyer <acolyer>2005-11-08 18:16:25 +0000
commitf6968e6f134df55243c451e45c303600560e6d04 (patch)
treebf03d8d9c72eac969cc2445effb51a35462d4a64 /tests/bugs150
parentc439e326284d2ffdf4898a50a3d0d5f6a6e99ef1 (diff)
downloadaspectj-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.aj29
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(..)) {}
+
+}
+