@ -557,16 +557,16 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -557,16 +557,16 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@ -594,18 +594,22 @@ public abstract class CacheAspectSupport extends AbstractCacheInvoker
@@ -594,18 +594,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+"'");