summaryrefslogtreecommitdiffstats
path: root/tests/bugs153/pr149908/Tracing.aj
diff options
context:
space:
mode:
authoraclement <aclement>2006-10-23 11:55:54 +0000
committeraclement <aclement>2006-10-23 11:55:54 +0000
commit757004ca6702a97369aac2ba62532f13ac5ced36 (patch)
treee64c1d3a4e7463dc592f9959109633719e7d0165 /tests/bugs153/pr149908/Tracing.aj
parentefe6cc79c4c19ebc8f7109f10220b13dc4efffad (diff)
downloadaspectj-757004ca6702a97369aac2ba62532f13ac5ced36.tar.gz
aspectj-757004ca6702a97369aac2ba62532f13ac5ced36.zip
tests and fix for 149908: NPE in org.aspectj.weaver.MemberImpl.getModifiers
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);
+ }
+
+
+}