mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-01-14 07:43:40 +01:00
attempt one at fixing class loader issues with H2 for the jenkins plugin
Former-commit-id: 125265069c0aedb7aa2a70a4a588b77e5fe4cb35
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user