File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/agent Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,9 @@ import com.jetbrains.rd.util.info
66import org.utbot.common.asPathToFile
77import org.utbot.framework.plugin.api.util.UtContext
88import java.lang.instrument.ClassFileTransformer
9+ import java.nio.file.Paths
910import java.security.ProtectionDomain
11+ import kotlin.io.path.absolutePathString
1012
1113
1214private 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 ) {
You can’t perform that action at this time.
0 commit comments