From 6a571da90e39fc84b277e5dcc7fd57ea976589bc Mon Sep 17 00:00:00 2001 From: Andy Clement Date: Tue, 2 Jun 2009 00:25:20 +0000 Subject: [PATCH] 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 --- .../java/org/springframework/core/convert/TypeDescriptor.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java b/org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java index 5dcdb99e7d8..d9c4f56c28d 100644 --- a/org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java +++ b/org.springframework.core/src/main/java/org/springframework/core/convert/TypeDescriptor.java @@ -189,7 +189,7 @@ public class TypeDescriptor { } return cachedFieldAnnotations; } else if (methodParameter != null) { - return methodParameter.getParameterAnnotations(); + return methodParameter.getMethod().getAnnotations(); } else { return null; }