aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs166/pr288635/InterceptTraceds.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs166/pr288635/InterceptTraceds.java')
-rw-r--r--tests/bugs166/pr288635/InterceptTraceds.java11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/bugs166/pr288635/InterceptTraceds.java b/tests/bugs166/pr288635/InterceptTraceds.java
new file mode 100644
index 000000000..a33f4ad8b
--- /dev/null
+++ b/tests/bugs166/pr288635/InterceptTraceds.java
@@ -0,0 +1,11 @@
+public aspect InterceptTraceds {
+
+ before(Anno t) : execution(@Anno * *.*(..)) && @annotation(t) {
+ if (t != null) {
+ System.out.println("Executing " + thisJoinPoint + " on level " + t.level());
+ } else {
+ System.out.println("Annotation was null on " + thisJoinPoint);
+ }
+ }
+
+}