summaryrefslogtreecommitdiffstats
path: root/tests/incremental/stringliteral/src/TraceMains.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/incremental/stringliteral/src/TraceMains.java')
-rw-r--r--tests/incremental/stringliteral/src/TraceMains.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/incremental/stringliteral/src/TraceMains.java b/tests/incremental/stringliteral/src/TraceMains.java
new file mode 100644
index 000000000..3c9a49bab
--- /dev/null
+++ b/tests/incremental/stringliteral/src/TraceMains.java
@@ -0,0 +1,16 @@
+
+import org.aspectj.testing.Tester;
+import org.aspectj.lang.JoinPoint;
+
+public aspect TraceMains {
+ private static String className(JoinPoint.StaticPart jp) {
+ return jp.getSignature().getDeclaringType().getName();
+ }
+ before() : execution(static void main(String[])) {
+ Tester.event("before main " + className(thisJoinPointStaticPart));
+ }
+ after() returning: execution(static void main(String[])) {
+ Tester.event("after main " + className(thisJoinPointStaticPart));
+ }
+
+} \ No newline at end of file