Skip to content

Commit 8c5cb77

Browse files
committed
ApplicationListenerMethodAdapter uses target method for order lookup
Closes gh-22307
1 parent 9a30748 commit 8c5cb77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-context/src/main/java/org/springframework/context/event/ApplicationListenerMethodAdapter.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -93,7 +93,7 @@ public ApplicationListenerMethodAdapter(String beanName, Class<?> targetClass, M
9393

9494
this.declaredEventTypes = resolveDeclaredEventTypes(method, ann);
9595
this.condition = (ann != null ? ann.condition() : null);
96-
this.order = resolveOrder(method);
96+
this.order = resolveOrder(targetMethod);
9797

9898
this.methodKey = new AnnotatedElementKey(method, targetClass);
9999
}

0 commit comments

Comments
 (0)