This commit is contained in:
Yanming Zhou 2025-07-01 21:54:40 +03:00 committed by GitHub
commit 3a934f166c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -129,7 +129,7 @@ public class BeanFactoryAspectInstanceFactory implements MetadataAwareAspectInst
Class<?> type = this.beanFactory.getType(this.name); Class<?> type = this.beanFactory.getType(this.name);
if (type != null) { if (type != null) {
if (Ordered.class.isAssignableFrom(type) && this.beanFactory.isSingleton(this.name)) { if (Ordered.class.isAssignableFrom(type) && this.beanFactory.isSingleton(this.name)) {
return ((Ordered) this.beanFactory.getBean(this.name)).getOrder(); return ((Ordered) getAspectInstance()).getOrder();
} }
return OrderUtils.getOrder(type, Ordered.LOWEST_PRECEDENCE); return OrderUtils.getOrder(type, Ordered.LOWEST_PRECEDENCE);
} }