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)

This commit is contained in:
Andy Clement 2009-06-02 00:25:20 +00:00
parent ac9e42fa29
commit 1e0207cf04
1 changed files with 1 additions and 1 deletions

View File

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