@ -586,16 +586,16 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -586,16 +586,16 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@ -623,18 +623,22 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -623,18 +623,22 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
}
if(syncEnabled){
if(this.contexts.size()>1){
thrownewIllegalStateException("@Cacheable(sync=true) cannot be combined with other cache operations on '"+method+"'");
thrownewIllegalStateException(
"@Cacheable(sync=true) cannot be combined with other cache operations on '"+method+"'");
}
if(cacheOperationContexts.size()>1){
thrownewIllegalStateException("Only one @Cacheable(sync=true) entry is allowed on '"+method+"'");
thrownewIllegalStateException(
"Only one @Cacheable(sync=true) entry is allowed on '"+method+"'");