Return type implementing DeferredResult is rejected with exception [SPR-14423] #18994
Comments
Juergen Hoeller commented That assertion - a consequence of #16826 - seems too harsh: We're trying to find out about the generically specified body type, whereas a custom class may indeed substitute that in an |
Juergen Hoeller commented I can only reproduce this when such a handler method returns |
S. Paetzold commented Yes that is the case! In a non-error scenario null is returned. I'm basically only interested in exceptions. |
Juergen Hoeller commented This is available in the latest |
This was referenced Jan 11, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
S. Paetzold opened SPR-14423 and commented
In Spring 4.1.1.RELEASE following code used to work:
Following exception is thrown:
If the method return type is simply changed to
DeferredResult<Object>
it starts working again!Affects: 4.2.6
Issue Links:
Referenced from: commits 4ddd957, cfc560c
Backported to: 4.2.7
The text was updated successfully, but these errors were encountered: