diff options
author | aclement <aclement> | 2009-01-29 03:59:59 +0000 |
---|---|---|
committer | aclement <aclement> | 2009-01-29 03:59:59 +0000 |
commit | fedb620ccb3b5e2235e70be07153aaceaf3b5cf4 (patch) | |
tree | 117bc8f2cabe7e23cb18217855b9fcbde52a5f9f /tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java | |
parent | b5045f23917acb21677dc31a251e629d558e7b99 (diff) | |
download | aspectj-fedb620ccb3b5e2235e70be07153aaceaf3b5cf4.tar.gz aspectj-fedb620ccb3b5e2235e70be07153aaceaf3b5cf4.zip |
194314: testcode
Diffstat (limited to 'tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java')
-rw-r--r-- | tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java b/tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java new file mode 100644 index 000000000..b08047d6b --- /dev/null +++ b/tests/bugs164/pr194314/ServiceInterceptorCodeStyle.java @@ -0,0 +1,15 @@ + +import org.aspectj.lang.ProceedingJoinPoint; +import org.aspectj.lang.annotation.Around; +import org.aspectj.lang.annotation.Aspect; + +public aspect ServiceInterceptorCodeStyle { + + void around(): execution(void Service.method(long)) { + Object[] args = thisJoinPoint.getArgs(); + long id = (Long) args[0]; + System.out.println("in advice, arg = " + id + " (before proceed)"); + proceed(); + System.out.println("in advice (after proceed)"); + } +} |