Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
AsyncResult calls SuccessCallback when it should call FailureCallback [SPR-14249] #18822
If the AsyncResult was created with AsyncResult.forExecutionException(Throwable), then you try to add callback with AsyncResult.addCallback(ListenableFutureCallback<? super V>), onSuccess(null) is called instead of onFailure(throwable).
Juergen Hoeller commented
This is effectively fixed in 4.3 already, as a consequence of the refinements behind #18358 (which primarily deal with consistent exception handling for
In any case, the particular issue here seems worth fixing in 4.2.6 as well, so I'll backport the explicit exception check (while preserving the general