HandlerMethod skips interface parameter introspection for return value

Fixes #22303
This commit is contained in:
Juergen Hoeller 2019-01-24 15:18:55 +01:00
parent 493e9c1ff0
commit 7cc700435b
1 changed files with 19 additions and 17 deletions

View File

@ -480,8 +480,9 @@ public class HandlerMethod {
Annotation[] anns = this.combinedAnnotations;
if (anns == null) {
anns = super.getParameterAnnotations();
for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
int index = getParameterIndex();
if (index >= 0) {
for (Annotation[][] ifcAnns : getInterfaceParameterAnnotations()) {
if (index < ifcAnns.length) {
Annotation[] paramAnns = ifcAnns[index];
if (paramAnns.length > 0) {
@ -503,6 +504,7 @@ public class HandlerMethod {
}
}
}
}
this.combinedAnnotations = anns;
}
return anns;