[hibernate-commits] Hibernate SVN: r18408 - core/trunk/core/src/main/java/org/hibernate/context.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Tue Jan 5 05:46:13 EST 2010


Author: epbernard
Date: 2010-01-05 05:46:13 -0500 (Tue, 05 Jan 2010)
New Revision: 18408

Modified:
   core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
Log:
HHH-4749 Don't block calls to getListeners on SessionImplementor when using thread scoped sessions

Modified: core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java
===================================================================
--- core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java	2010-01-05 09:45:30 UTC (rev 18407)
+++ core/trunk/core/src/main/java/org/hibernate/context/ThreadLocalSessionContext.java	2010-01-05 10:46:13 UTC (rev 18408)
@@ -311,7 +311,9 @@
 					     || "equals".equals( method.getName() )
 					     || "hashCode".equals( method.getName() )
 				         || "getStatistics".equals( method.getName() )
-					     || "isOpen".equals( method.getName() ) ) {
+					     || "isOpen".equals( method.getName() )
+						 || "getListeners".equals( method.getName() ) //useful for HSearch in particular
+						) {
 					// allow these to go through the the real session no matter what
 				}
 				else if ( !realSession.isOpen() ) {



More information about the hibernate-commits mailing list