Skip to content

Commit 54a90b2

Browse files
committed
Avoid logger serialization behind shared EntityManager proxy
See gh-34084
1 parent d7a3971 commit 54a90b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: spring-orm/src/main/java/org/springframework/orm/jpa/SharedEntityManagerCreator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ public static EntityManager createSharedEntityManager(EntityManagerFactory emf,
186186
@SuppressWarnings("serial")
187187
private static class SharedEntityManagerInvocationHandler implements InvocationHandler, Serializable {
188188

189-
private final Log logger = LogFactory.getLog(getClass());
189+
private static final Log logger = LogFactory.getLog(SharedEntityManagerInvocationHandler.class);
190190

191191
private final EntityManagerFactory targetFactory;
192192

0 commit comments

Comments
 (0)