Skip to content

Commit e1f9e13

Browse files
committed
LazyInitializationException probably shouldn't log from its constructor
1 parent eb3feb6 commit e1f9e13

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

hibernate-core/src/main/java/org/hibernate/LazyInitializationException.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,6 @@
44
*/
55
package org.hibernate;
66

7-
import org.hibernate.internal.CoreMessageLogger;
8-
9-
import org.jboss.logging.Logger;
10-
11-
import java.lang.invoke.MethodHandles;
12-
137
/**
148
* Indicates an attempt to access unfetched data outside the context
159
* of an open stateful {@link Session}.
@@ -25,20 +19,13 @@
2519
*/
2620
public class LazyInitializationException extends HibernateException {
2721

28-
private static final CoreMessageLogger LOG = Logger.getMessageLogger(
29-
MethodHandles.lookup(),
30-
CoreMessageLogger.class,
31-
LazyInitializationException.class.getName()
32-
);
33-
3422
/**
3523
* Constructs a {@code LazyInitializationException} using the given message.
3624
*
3725
* @param message A message explaining the exception condition
3826
*/
3927
public LazyInitializationException(String message) {
4028
super( message );
41-
LOG.trace( message, this );
4229
}
4330

4431
}

0 commit comments

Comments
 (0)