diff --git a/spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java b/spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java index a47105eaba..b2939c59dc 100644 --- a/spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java +++ b/spring-core/src/main/java/org/springframework/core/annotation/TypeMappedAnnotation.java @@ -441,8 +441,8 @@ final class TypeMappedAnnotation extends AbstractMergedAnn value = this.mapping.getMappedAnnotationValue(attributeIndex, forMirrorResolution); } if (value == null) { - Method attribute = mapping.getAttributes().get(attributeIndex); - value = ReflectionUtils.invokeMethod(attribute, mapping.getAnnotation()); + Method attribute = this.mapping.getAttributes().get(attributeIndex); + value = ReflectionUtils.invokeMethod(attribute, this.mapping.getAnnotation()); } return value; }