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
6
6
import org.utbot.common.asPathToFile
7
7
import org.utbot.framework.plugin.api.util.UtContext
8
8
import java.lang.instrument.ClassFileTransformer
9
+ import java.nio.file.Paths
9
10
import java.security.ProtectionDomain
11
+ import kotlin.io.path.absolutePathString
10
12
11
13
12
14
private val logger = getLogger(" DynamicClassTransformer" )
@@ -32,7 +34,7 @@ class DynamicClassTransformer : ClassFileTransformer {
32
34
): ByteArray? {
33
35
try {
34
36
UtContext .currentContext()?.stopWatch?.stop()
35
- val pathToClassfile = protectionDomain.codeSource?.location?.path?.asPathToFile ()
37
+ val pathToClassfile = protectionDomain.codeSource?.location?.toURI()?. let ( Paths ::get)?.absolutePathString ()
36
38
return if (pathToClassfile in pathsToUserClasses ||
37
39
packsToAlwaysTransform.any(className::startsWith)
38
40
) {
You can’t perform that action at this time.
0 commit comments