HHH-3529 - ConnectionWrapper is not visible from class loader

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@17917 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Steve Ebersole 2009-11-05 03:17:54 +00:00
parent 61b9b2575c
commit bcb9f8a302

View File

@ -132,10 +132,6 @@ public static Connection getWrappedConnection(Connection connection) {
* @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();
}
}