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

Former-commit-id: 01f55bdb4b3084d4eeb4939570a7640c4aaba956
This commit is contained in:
Jeremy Long
2014-01-16 18:56:35 -05:00
parent db12565dcf
commit d92d832804

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));