File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
spring-context/src/main/java/org/springframework/cache/interceptor Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2019 the original author or authors.
2
+ * Copyright 2002-2020 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
50
50
import org .springframework .util .LinkedMultiValueMap ;
51
51
import org .springframework .util .MultiValueMap ;
52
52
import org .springframework .util .ObjectUtils ;
53
+ import org .springframework .util .ReflectionUtils ;
53
54
import org .springframework .util .StringUtils ;
54
55
55
56
/**
@@ -365,9 +366,9 @@ public Object call() throws Exception {
365
366
}));
366
367
}
367
368
catch (Cache .ValueRetrievalException ex ) {
368
- // The invoker wraps any Throwable in a ThrowableWrapper instance so we
369
- // can just make sure that one bubbles up the stack .
370
- throw ( CacheOperationInvoker . ThrowableWrapper ) ex .getCause ();
369
+ // Directly propagate ThrowableWrapper from the invoker,
370
+ // or potentially also an IllegalArgumentException etc .
371
+ ReflectionUtils . rethrowRuntimeException ( ex .getCause () );
371
372
}
372
373
}
373
374
else {
You can’t perform that action at this time.
0 commit comments