Skip to content

Commit 7f670bb

Browse files
committed
TransactionSynchronization does not support @order (just Ordered interface)
See gh-21725
1 parent 6aaf759 commit 7f670bb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-tx/src/main/java/org/springframework/transaction/support/TransactionSynchronizationManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2020 the original author or authors.
2+
* Copyright 2002-2021 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.
@@ -28,7 +28,7 @@
2828
import org.apache.commons.logging.LogFactory;
2929

3030
import org.springframework.core.NamedThreadLocal;
31-
import org.springframework.core.annotation.AnnotationAwareOrderComparator;
31+
import org.springframework.core.OrderComparator;
3232
import org.springframework.lang.Nullable;
3333
import org.springframework.util.Assert;
3434

@@ -320,7 +320,7 @@ public static List<TransactionSynchronization> getSynchronizations() throws Ille
320320
else {
321321
// Sort lazily here, not in registerSynchronization.
322322
List<TransactionSynchronization> sortedSynchs = new ArrayList<>(synchs);
323-
AnnotationAwareOrderComparator.sort(sortedSynchs);
323+
OrderComparator.sort(sortedSynchs);
324324
return Collections.unmodifiableList(sortedSynchs);
325325
}
326326
}

0 commit comments

Comments
 (0)