attempt one at fixing class loader issues with H2 for the jenkins plugin

Former-commit-id: 125265069c0aedb7aa2a70a4a588b77e5fe4cb35
This commit is contained in:
Jeremy Long
2014-01-16 18:56:35 -05:00
parent d9333b2e93
commit 5d2010aa73

View File

@@ -115,7 +115,8 @@ public final class DriverLoader {
*/
private static void load(String className, ClassLoader loader) throws DriverLoadException {
try {
final Class c = loader.loadClass(className);
final Class c = Class.forName(className, true, loader);
//final Class c = loader.loadClass(className);
final Driver driver = (Driver) c.newInstance();
//using the DriverShim to get around the fact that the DriverManager won't register a driver not in the base class path
DriverManager.registerDriver(new DriverShim(driver));