Generate classes in the proper protection domain.

pull/192/head
Brett Wooldridge 10 years ago
parent f4061a09e4
commit cf1109b0a5

@ -1,5 +1,10 @@
HikariCP Changes
Changes between 2.1.0 and 2.1.1
* Generate proxy classes into the same protection domain as the HikariCP
loaded classes. This solves issues with signed jars.
Changes between 2.0.1 and 2.1.0
* Significant internal refactor supporting creation of new proxy instances

@ -118,7 +118,7 @@ public final class JavassistProxyFactory
}
}
proxyCt.toClass(classPool.getClassLoader(), null);
proxyCt.toClass(classPool.getClassLoader(), getClass().getProtectionDomain());
}
/**
@ -189,7 +189,7 @@ public final class JavassistProxyFactory
targetCt.debugWriteFile(System.getProperty("java.io.tmpdir"));
}
return targetCt.toClass(classPool.getClassLoader(), null);
return targetCt.toClass(classPool.getClassLoader(), getClass().getProtectionDomain());
}
private boolean isThrowsSqlException(CtMethod method)

@ -119,7 +119,7 @@ public final class JavassistProxyFactory
}
}
proxyCt.toClass(classPool.getClassLoader(), null);
proxyCt.toClass(classPool.getClassLoader(), getClass().getProtectionDomain());
}
/**
@ -190,7 +190,7 @@ public final class JavassistProxyFactory
targetCt.debugWriteFile(System.getProperty("java.io.tmpdir"));
}
return targetCt.toClass(classPool.getClassLoader(), null);
return targetCt.toClass(classPool.getClassLoader(), getClass().getProtectionDomain());
}
private boolean isThrowsSqlException(CtMethod method)

Loading…
Cancel
Save