Browse Source

modified so that when the descriptor represents a method parameter, we retrieve the annotations from the method and not the method parameter (seems to make more sense - certainly in the binding case)

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1295 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Andy Clement 17 years ago
parent
commit
6a571da90e
  1. 2
      org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

2
org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java

@ -189,7 +189,7 @@ public class TypeDescriptor<T> {
} }
return cachedFieldAnnotations; return cachedFieldAnnotations;
} else if (methodParameter != null) { } else if (methodParameter != null) {
return methodParameter.getParameterAnnotations(); return methodParameter.getMethod().getAnnotations();
} else { } else {
return null; return null;
} }

Loading…
Cancel
Save