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

ListenableFutureAdapter keeps propagating onSuccess/onFailure exceptions

Issue: SPR-13785
上级 7dc18126
...@@ -65,22 +65,12 @@ public abstract class ListenableFutureAdapter<T, S> extends FutureAdapter<T, S> ...@@ -65,22 +65,12 @@ public abstract class ListenableFutureAdapter<T, S> extends FutureAdapter<T, S>
onFailure(ex); onFailure(ex);
return; return;
} }
try {
successCallback.onSuccess(adapted); successCallback.onSuccess(adapted);
} }
catch (Throwable e) {
// Ignore
}
}
@Override @Override
public void onFailure(Throwable ex) { public void onFailure(Throwable ex) {
try {
failureCallback.onFailure(ex); failureCallback.onFailure(ex);
} }
catch (Throwable t) {
// Ignore
}
}
}); });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册