提交 5400bb91 编写于 作者: J Juergen Hoeller

ListenableFutureAdapter keeps propagating onSuccess/onFailure exceptions

Issue: SPR-13785
上级 7dc18126
......@@ -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);
}
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册