Skip to content

Commit 71bbb07

Browse files
java.net.URISyntaxException: Illegal character in path #587 (#702)
1 parent 71723a9 commit 71bbb07

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utbot-core/src/main/kotlin/org/utbot/common/FileUtil.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ object FileUtil {
105105
return tempDir
106106
}
107107

108-
private fun URI.extractJarName(): URI = URI(this.schemeSpecificPart.substringBefore("!"))
108+
private fun URI.extractJarName(): URI = URI(this.schemeSpecificPart.substringBefore("!").replace(" ", "%20"))
109109

110110
private fun extractClassFromArchive(archiveFile: Path, clazz: KClass<*>, destPath: Path) {
111111
val classFilePath = clazz.toClassFilePath()

0 commit comments

Comments
 (0)