mirror of
https://github.com/spring-projects/spring-framework
synced 2026-06-08 17:33:33 +00:00
Correctly delegate to OrderUtils.getPriority for DecoratingProxy
Issue: SPR-16739
This commit is contained in:
+1
-1
@@ -107,7 +107,7 @@ public class AnnotationAwareOrderComparator extends OrderComparator {
|
|||||||
}
|
}
|
||||||
Integer priority = OrderUtils.getPriority(obj.getClass());
|
Integer priority = OrderUtils.getPriority(obj.getClass());
|
||||||
if (priority == null && obj instanceof DecoratingProxy) {
|
if (priority == null && obj instanceof DecoratingProxy) {
|
||||||
priority = OrderUtils.getOrder(((DecoratingProxy) obj).getDecoratedClass());
|
priority = OrderUtils.getPriority(((DecoratingProxy) obj).getDecoratedClass());
|
||||||
}
|
}
|
||||||
return priority;
|
return priority;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user