summaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr149908/Tracing.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs153/pr149908/Tracing.aj')
-rw-r--r--tests/bugs153/pr149908/Tracing.aj25
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/bugs153/pr149908/Tracing.aj b/tests/bugs153/pr149908/Tracing.aj
new file mode 100644
index 000000000..0d1f2e5d3
--- /dev/null
+++ b/tests/bugs153/pr149908/Tracing.aj
@@ -0,0 +1,25 @@
+public aspect Tracing {
+
+ private int _callDepth = -1;
+
+ pointcut tracePoints() : !within(Tracing);
+
+ before() : tracePoints() {
+ _callDepth++; print("Before", thisJoinPoint);
+ }
+
+ after() : tracePoints() {
+ print("After", thisJoinPoint);
+ _callDepth--;
+ }
+
+ private void print(String prefix, Object message) {
+ for(int i = 0, spaces = _callDepth * 2; i < spaces; i++) {
+ //MyPrint.print(" ","");
+ }
+
+ System.out.println(prefix + ": " + message);
+ }
+
+
+}