New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ApplicationListenerMethodAdapter does not find @Ordered annotation for dynamic proxies #22307
Comments
This will be available in the upcoming |
Sorry, no opportunity here. :( We are using the 4.3 branch. I've just checked the master and saw that this bug still present, so I thought I report it... |
No worries, thanks for reporting it! Stay tuned in any case, we might be able to backport this for the 4.3.23 release. |
FWIW, this is available in |
Affects: 5.1.x
Is there a specific reason for ApplicationListenerMethodAdapter to use the "method" variable instead of the "targetMethod" in its constructor when resolving Order annotations?
Because for dynamic proxies, this results in a funny situation: EventListener annotation is present on the target class's method, but the Order annotation must be placed on the interface's method, otherwise it is not found.
later, in resolveOrder():
Order ann = AnnotatedElementUtils.findMergedAnnotation(method, Order.class);
The text was updated successfully, but these errors were encountered: