Skip to content

Commit ea14197

Browse files
authored
Too many tests generated by Fuzzer #1225 (#1239)
1 parent 195999f commit ea14197

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/agent/DynamicClassTransformer.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import com.jetbrains.rd.util.info
66
import org.utbot.common.asPathToFile
77
import org.utbot.framework.plugin.api.util.UtContext
88
import java.lang.instrument.ClassFileTransformer
9+
import java.nio.file.Paths
910
import java.security.ProtectionDomain
11+
import kotlin.io.path.absolutePathString
1012

1113

1214
private val logger = getLogger("DynamicClassTransformer")
@@ -32,7 +34,7 @@ class DynamicClassTransformer : ClassFileTransformer {
3234
): ByteArray? {
3335
try {
3436
UtContext.currentContext()?.stopWatch?.stop()
35-
val pathToClassfile = protectionDomain.codeSource?.location?.path?.asPathToFile()
37+
val pathToClassfile = protectionDomain.codeSource?.location?.toURI()?.let(Paths::get)?.absolutePathString()
3638
return if (pathToClassfile in pathsToUserClasses ||
3739
packsToAlwaysTransform.any(className::startsWith)
3840
) {

0 commit comments

Comments
 (0)