Skip to content
This repository was archived by the owner on Dec 15, 2021. It is now read-only.

Commit 2a8b821

Browse files
committed
Print diagnostic statement about proxying for SPR-9575
1 parent de91e04 commit 2a8b821

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

SPR-9575/src/main/java/org/springframework/issues/AsyncService.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
import java.util.concurrent.TimeUnit;
77
import java.util.concurrent.TimeoutException;
88

9+
import org.springframework.aop.support.AopUtils;
910
import org.springframework.beans.factory.annotation.Autowired;
1011
import org.springframework.beans.factory.annotation.Qualifier;
1112
import org.springframework.stereotype.Service;
@@ -32,6 +33,7 @@ public ResultDto findBalanceAsync(String targetDiv) throws Exception {
3233
ResultDto dto = new ResultDto();
3334
future = portletCache.get(targetDiv);
3435
if (future==null) {
36+
System.out.println("is asyncProcess an @Async proxy? " + AopUtils.isAopProxy(asyncProcess));
3537
future = asyncProcess.findBalanceAsync(targetDiv);
3638
portletCache.put(targetDiv, future);
3739
}

0 commit comments

Comments
 (0)