Fix issue with async return value type determination

Before this change, the type of asynchronously produced return values
(e.g. Callable, DeferredResult, ListenableFuture) could not be
properly determined with an actual resulting value of null. Or even
with an actual value returned, the generic type could not be properly
determined. This change fixes both of those issues.

Issue: SPR-12287
This commit is contained in:
Rossen Stoyanchev
2014-10-15 16:39:03 -04:00
parent 6f987a9cf8
commit 956b66bbd4
3 changed files with 111 additions and 33 deletions

View File

@@ -247,7 +247,7 @@ public class HandlerMethod {
/**
* A MethodParameter with HandlerMethod-specific behavior.
*/
private class HandlerMethodParameter extends MethodParameter {
protected class HandlerMethodParameter extends MethodParameter {
public HandlerMethodParameter(int index) {
super(HandlerMethod.this.bridgedMethod, index);