From de0f3aec53e88962411b629350d8d86ad3447730 Mon Sep 17 00:00:00 2001 From: Juergen Hoeller Date: Wed, 2 Sep 2015 18:36:55 +0200 Subject: [PATCH] Undo AsyncRestTemplate's catching of Throwable in 4.1.x Issue: SPR-13413 Issue: SPR-12887 --- .../java/org/springframework/web/client/AsyncRestTemplate.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java b/spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java index 08924ac16a..f99a4b9572 100644 --- a/spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java +++ b/spring-web/src/main/java/org/springframework/web/client/AsyncRestTemplate.java @@ -644,7 +644,7 @@ public class AsyncRestTemplate extends AsyncHttpAccessor implements AsyncRestOpe } return convertResponse(response); } - catch (Throwable ex) { + catch (IOException ex) { throw new ExecutionException(ex); } finally {