From 1fcb2608fbd298b176658f09fc38f5e802e3fa8f Mon Sep 17 00:00:00 2001 From: David Brimley Date: Wed, 11 Jan 2017 16:29:14 +0000 Subject: [PATCH] Honour ErrorHandler if `Cache.put` fails This commit makes sure that the `ErrorHandler` is invoked if the cache fails to put an element (be it in the main cache or the exception cache). See gh-1292 Issue: SPR-15188 --- .../cache/jcache/interceptor/CacheResultInterceptor.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CacheResultInterceptor.java b/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CacheResultInterceptor.java index 7c178edf02d..e42c334b94b 100644 --- a/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CacheResultInterceptor.java +++ b/spring-context-support/src/main/java/org/springframework/cache/jcache/interceptor/CacheResultInterceptor.java @@ -59,7 +59,7 @@ class CacheResultInterceptor extends AbstractKeyCacheInterceptor