summaryrefslogtreecommitdiffstats
path: root/tests/bugs164/pr194314/ServiceInterceptor.java
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bugs164/pr194314/ServiceInterceptor.java')
-rw-r--r--tests/bugs164/pr194314/ServiceInterceptor.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/bugs164/pr194314/ServiceInterceptor.java b/tests/bugs164/pr194314/ServiceInterceptor.java
new file mode 100644
index 000000000..9ce6e8e6d
--- /dev/null
+++ b/tests/bugs164/pr194314/ServiceInterceptor.java
@@ -0,0 +1,17 @@
+
+import org.aspectj.lang.ProceedingJoinPoint;
+import org.aspectj.lang.annotation.Around;
+import org.aspectj.lang.annotation.Aspect;
+
+@Aspect
+public class ServiceInterceptor {
+
+ @Around("execution(void Service.method(long))")
+ public void method(ProceedingJoinPoint pjp) throws Throwable {
+ Object[] args = pjp.getArgs();
+ long id = (Long) args[0];
+ System.out.println("in advice, arg = " + id + " (before proceed)");
+ pjp.proceed(pjp.getArgs());
+ System.out.println("in advice (after proceed)");
+ }
+}