Author: steve.ebersole(a)jboss.com
Date: 2009-11-04 22:17:54 -0500 (Wed, 04 Nov 2009)
New Revision: 17917
Modified:
core/trunk/core/src/main/java/org/hibernate/jdbc/BorrowedConnectionProxy.java
Log:
HHH-3529 - ConnectionWrapper is not visible from class loader
Modified: core/trunk/core/src/main/java/org/hibernate/jdbc/BorrowedConnectionProxy.java
===================================================================
---
core/trunk/core/src/main/java/org/hibernate/jdbc/BorrowedConnectionProxy.java 2009-11-04
23:32:27 UTC (rev 17916)
+++
core/trunk/core/src/main/java/org/hibernate/jdbc/BorrowedConnectionProxy.java 2009-11-05
03:17:54 UTC (rev 17917)
@@ -132,10 +132,6 @@
* @return The class loader appropriate for proxy construction.
*/
public static ClassLoader getProxyClassLoader() {
- ClassLoader cl = Thread.currentThread().getContextClassLoader();
- if ( cl == null ) {
- cl = BorrowedConnectionProxy.class.getClassLoader();
- }
- return cl;
+ return ConnectionWrapper.class.getClassLoader();
}
}
Show replies by date