提交 9882a53c 编写于 作者: S Stephane Nicoll

Fix test failure

上级 a0747c21
......@@ -16,6 +16,7 @@
package org.springframework.cache.config;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.cache.annotation.CacheEvict;
......@@ -159,12 +160,12 @@ public class AnnotatedClassCacheableService implements CacheableService<Object>
@Override
public Long throwChecked(Object arg1) throws Exception {
throw new UnsupportedOperationException(arg1.toString());
throw new IOException(arg1.toString());
}
@Override
public Long throwUnchecked(Object arg1) {
throw new UnsupportedOperationException();
throw new UnsupportedOperationException(arg1.toString());
}
// multi annotations
......
......@@ -16,6 +16,7 @@
package org.springframework.cache.config;
import java.io.IOException;
import java.util.concurrent.atomic.AtomicLong;
import org.springframework.cache.annotation.CacheEvict;
......@@ -166,7 +167,7 @@ public class DefaultCacheableService implements CacheableService<Long> {
@Override
@Cacheable("testCache")
public Long throwChecked(Object arg1) throws Exception {
throw new Exception(arg1.toString());
throw new IOException(arg1.toString());
}
@Override
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册