Skip to content

Commit 5400bb9

Browse files
committed
ListenableFutureAdapter keeps propagating onSuccess/onFailure exceptions
Issue: SPR-13785
1 parent 7dc1812 commit 5400bb9

File tree

1 file changed

+2
-12
lines changed

1 file changed

+2
-12
lines changed

spring-core/src/main/java/org/springframework/util/concurrent/ListenableFutureAdapter.java

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -65,21 +65,11 @@ public void onSuccess(S result) {
6565
onFailure(ex);
6666
return;
6767
}
68-
try {
69-
successCallback.onSuccess(adapted);
70-
}
71-
catch (Throwable e) {
72-
// Ignore
73-
}
68+
successCallback.onSuccess(adapted);
7469
}
7570
@Override
7671
public void onFailure(Throwable ex) {
77-
try {
78-
failureCallback.onFailure(ex);
79-
}
80-
catch (Throwable t) {
81-
// Ignore
82-
}
72+
failureCallback.onFailure(ex);
8373
}
8474
});
8575
}

0 commit comments

Comments
 (0)