Commit b74fffa6 authored by Captain.B's avatar Captain.B Committed by 刘瑞斌
Browse files

fix: 尝试修复测试执行时类加载的问题

parent 7f4eb022
No related merge requests found
Showing with 1 addition and 1 deletion
+1 -1
......@@ -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())
);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment