diff --git a/spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java b/spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java
index fa35b563833..addaf274b02 100644
--- a/spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java
+++ b/spring-messaging/src/main/java/org/springframework/messaging/handler/method/HandlerMethod.java
@@ -206,7 +206,7 @@ public class HandlerMethod {
* @return the annotation, or {@code null} if none found
*/
public A getMethodAnnotation(Class annotationType) {
- return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType);
+ return AnnotationUtils.findAnnotation(this.method, annotationType);
}
/**
diff --git a/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java b/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
index 066b273275c..aec22e4d5a3 100644
--- a/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
+++ b/spring-web/src/main/java/org/springframework/web/method/HandlerMethod.java
@@ -206,7 +206,7 @@ public class HandlerMethod {
* @return the annotation, or {@code null} if none found
*/
public A getMethodAnnotation(Class annotationType) {
- return AnnotationUtils.findAnnotation(this.bridgedMethod, annotationType);
+ return AnnotationUtils.findAnnotation(this.method, annotationType);
}
/**