aboutsummaryrefslogtreecommitdiffstats
path: root/tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj')
-rw-r--r--tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj b/tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj
new file mode 100644
index 000000000..43211d6ec
--- /dev/null
+++ b/tests/bugs/serialVersionUID/AroundClosureExecutionAdvice.aj
@@ -0,0 +1,22 @@
+import java.io.InvalidClassException;
+import org.aspectj.testing.Tester;
+
+public aspect AroundClosureExecutionAdvice {
+
+ pointcut run () :
+ execution(public void run());
+
+ void around () : run () {
+ Runnable runnable = new Runnable() {
+ public void run () {
+ System.out.println("> AroundClosureExecutionAdvice.run()");
+
+ proceed();
+
+ System.out.println("< AroundClosureExecutionAdvice.run()");
+ }
+ };
+ runnable.run();
+ }
+
+}