diff --git a/spring-core/src/main/java/org/springframework/core/MethodParameter.java b/spring-core/src/main/java/org/springframework/core/MethodParameter.java index 6c1e1068d0..f012500224 100644 --- a/spring-core/src/main/java/org/springframework/core/MethodParameter.java +++ b/spring-core/src/main/java/org/springframework/core/MethodParameter.java @@ -486,7 +486,9 @@ public class MethodParameter { if (paramType != null) { return paramType; } - paramType = ResolvableType.forMethodParameter(this, null, 1).resolve(); + if (getContainingClass() != getDeclaringClass()) { + paramType = ResolvableType.forMethodParameter(this, null, 1).resolve(); + } if (paramType == null) { paramType = computeParameterType(); }