+ temporarily revert change

master
Costin Leau 13 years ago
parent b6d7c85f6e
commit 04bcd77520
  1. 7
      org.springframework.aspects/src/main/java/org/springframework/cache/aspectj/AbstractCacheAspect.aj

@ -16,6 +16,7 @@
package org.springframework.cache.aspectj; package org.springframework.cache.aspectj;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method; import java.lang.reflect.Method;
import java.util.concurrent.Callable; import java.util.concurrent.Callable;
@ -55,7 +56,7 @@ public abstract aspect AbstractCacheAspect extends CacheAspectSupport {
} }
@SuppressAjWarnings("adviceDidNotMatch") @SuppressAjWarnings("adviceDidNotMatch")
Object around(final Object cachedObject) : cacheMethodExecution(cachedObject){ Object around(final Object cachedObject) : cacheMethodExecution(cachedObject) {
MethodSignature methodSignature = (MethodSignature) thisJoinPoint.getSignature(); MethodSignature methodSignature = (MethodSignature) thisJoinPoint.getSignature();
Method method = methodSignature.getMethod(); Method method = methodSignature.getMethod();
@ -65,7 +66,11 @@ public abstract aspect AbstractCacheAspect extends CacheAspectSupport {
} }
}; };
try{
return execute(ajInvocation, thisJoinPoint.getTarget(), method, thisJoinPoint.getArgs()); return execute(ajInvocation, thisJoinPoint.getTarget(), method, thisJoinPoint.getArgs());
} catch (Exception ex){
throw new RuntimeException("Cannot cache target ", ex);
}
} }
/** /**

Loading…
Cancel
Save