Browse Source

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
pull/82/head
Rossen Stoyanchev 14 years ago
parent
commit
03d6350e4b
  1. 2
      spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java

2
spring-web/src/main/java/org/springframework/web/method/support/InvocableHandlerMethod.java

@ -193,7 +193,7 @@ public class InvocableHandlerMethod extends HandlerMethod { @@ -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) {

Loading…
Cancel
Save