mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
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:
parent
61b9b2575c
commit
bcb9f8a302
@ -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();
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user