Skip to content

Commit 1842acc

Browse files
committed
Correct classLoader
1 parent b6553e8 commit 1842acc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-spring-analyzer/src/main/kotlin/org/utbot/spring/process/SpringAnalyzerProcess.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ class SpringAnalyzerProcess private constructor(
131131
* to manage to create our internal SpringBootApplication for bean definitions analysis.
132132
*/
133133
private fun findRequiredSpringAnalyzerJarPath(classpathItems: List<String>): String {
134-
val testClassLoader = URLClassLoader(classpathItems.map { File(it).toURI().toURL() }.toTypedArray())
134+
val testClassLoader = URLClassLoader(classpathItems.map { File(it).toURI().toURL() }.toTypedArray(), null)
135135
try {
136136
testClassLoader.loadClass("org.springframework.boot.builder.SpringApplicationBuilder")
137137
} catch (e: ClassNotFoundException) {

0 commit comments

Comments
 (0)