1 package test.aspectutilmethodbug; 2 3 import org.codehaus.aspectwerkz.joinpoint.JoinPoint; 4 5 public class DemoAspect { 6 7 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 25 private void log(String message) { 26 } 27 } | Popular Tags |