jkoChen opened a new pull request, #14156: URL: https://github.com/apache/dubbo/pull/14156
Fixes https://github.com/apache/dubbo/issues/14104. ## The Problem The method `org.apache.dubbo.config.spring.util.AnnotationUtils#tryGetMergedAnnotation` utilizes reflection to access `org.springframework.core.annotation.AnnotatedElementUtils#getMergedAnnotation`. However, there is a signature mismatch in the method's input parameters, which leads to an inability to retrieve the correct method. Consequently, this results in the failure to obtain the mergedAnnotation. ## What is the purpose of the change It is recommended to fix this issue, as it will cause the passing of the `DubboReference` annotation to become ineffective. ## Brief changelog fix the signature error when using reflection to access the org.springframework.core.annotation.AnnotatedElementUtils#getMergedAnnotation method ## Verifying this change After the patch, it is possible to correctly obtain the `org.springframework.core.annotation.AnnotatedElementUtils#getMergedAnnotation` method. <!-- Follow this checklist to help us incorporate your contribution quickly and easily: --> ## Checklist - [x] Make sure there is a [GitHub_issue](https://github.com/apache/dubbo/issues) field for the change (usually before you start working on it). Trivial changes like typos do not require a GitHub issue. Your pull request should address just this issue, without pulling in other changes - one PR resolves one issue. - [x] Each commit in the pull request should have a meaningful subject line and body. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] GitHub Actions works fine on your own branch. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org For additional commands, e-mail: notifications-h...@dubbo.apache.org