fix: 尝试修复测试执行时类加载的问题
This commit is contained in:
parent
7f4eb02228
commit
b74fffa669
|
@ -127,7 +127,7 @@ public final class NewDriver {
|
|||
System.setProperty(JAVA_CLASS_PATH, initiaClasspath + classpath.toString());
|
||||
loader = AccessController.doPrivileged(
|
||||
(PrivilegedAction<DynamicClassLoader>) () ->
|
||||
new DynamicClassLoader(jars.toArray(new URL[jars.size()]))
|
||||
new DynamicClassLoader(jars.toArray(new URL[jars.size()]), Thread.currentThread().getContextClassLoader())
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue