mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-24 10:01:35 +01:00
attempt one at fixing class loader issues with H2 for the jenkins plugin
Former-commit-id: 01f55bdb4b3084d4eeb4939570a7640c4aaba956
This commit is contained in:
@@ -115,7 +115,8 @@ public final class DriverLoader {
|
|||||||
*/
|
*/
|
||||||
private static void load(String className, ClassLoader loader) throws DriverLoadException {
|
private static void load(String className, ClassLoader loader) throws DriverLoadException {
|
||||||
try {
|
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();
|
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
|
//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));
|
DriverManager.registerDriver(new DriverShim(driver));
|
||||||
|
|||||||
Reference in New Issue
Block a user