Fix issue with resolution of WebDataBinder argument

There is usually not need to put annotations on a WebDataBinder
argument in an `@InitBinder` method. However, the presence of any
annotation prevented the successful resolution of the argument.
This fix addresses the issue.

Issue: SPR-8946
This commit is contained in:
Rossen Stoyanchev
2012-05-18 11:17:29 -04:00
parent 5cd6543d83
commit 03d6350e4b

View File

@@ -193,7 +193,7 @@ public class InvocableHandlerMethod extends HandlerMethod {
* Attempt to resolve a method parameter from the list of provided argument values.
*/
private Object resolveProvidedArgument(MethodParameter parameter, Object... providedArgs) {
if (providedArgs == null || parameter.hasParameterAnnotations()) {
if (providedArgs == null) {
return null;
}
for (Object providedArg : providedArgs) {