01: package test.aspectutilmethodbug;
02:
03: import org.codehaus.aspectwerkz.joinpoint.JoinPoint;
04:
05: public class DemoAspect {
06:
07: /**
08: * @Around execution(public void test.aspectutilmethodbug.Test.invoke())
09: */
10: public Object trace(final JoinPoint joinPoint) throws Throwable {
11: Test.log("before ");
12: Object result = null;
13: try {
14: result = joinPoint.proceed();
15: } catch (Throwable throwable) {
16: throwable.printStackTrace();
17: }
18: Test.log("after ");
19: return result;
20: }
21:
22: /**
23: * Method that screwed up the advice method indexing.
24: */
25: private void log(String message) {
26: }
27: }
|