Defensive resolution of getParameterType (actually never returning null)

Covers use of ResolvableType in overridden getParameterType variants.

Issue: SPR-16072
This commit is contained in:
Juergen Hoeller
2017-10-17 12:15:51 +02:00
parent 97c63857c4
commit 6f65b638de
2 changed files with 2 additions and 2 deletions

View File

@@ -280,7 +280,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
return this.returnValue.getClass();
}
if (!ResolvableType.NONE.equals(this.returnType)) {
return this.returnType.resolve();
return this.returnType.resolve(Object.class);
}
return super.getParameterType();
}