mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 06:29:10 +00:00
ListenableFutureAdapter keeps propagating onSuccess/onFailure exceptions
Issue: SPR-13785
This commit is contained in:
+2
-12
@@ -65,21 +65,11 @@ public abstract class ListenableFutureAdapter<T, S> extends FutureAdapter<T, S>
|
||||
onFailure(ex);
|
||||
return;
|
||||
}
|
||||
try {
|
||||
successCallback.onSuccess(adapted);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
// Ignore
|
||||
}
|
||||
successCallback.onSuccess(adapted);
|
||||
}
|
||||
@Override
|
||||
public void onFailure(Throwable ex) {
|
||||
try {
|
||||
failureCallback.onFailure(ex);
|
||||
}
|
||||
catch (Throwable t) {
|
||||
// Ignore
|
||||
}
|
||||
failureCallback.onFailure(ex);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user