Skip to content

Commit f200ff1

Browse files
Custom exception serialization fix #2207 (#2209)
1 parent c78fa93 commit f200ff1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utbot-instrumentation/src/main/kotlin/org/utbot/instrumentation/util/JavaSerializerWrapper.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import com.esotericsoftware.kryo.kryo5.Kryo
44
import com.esotericsoftware.kryo.kryo5.KryoException
55
import com.esotericsoftware.kryo.kryo5.io.Input
66
import com.esotericsoftware.kryo.kryo5.serializers.JavaSerializer
7+
import org.utbot.framework.plugin.api.util.utContext
78
import java.io.InputStream
89
import java.io.ObjectInputStream
910
import java.io.ObjectStreamClass
@@ -51,7 +52,7 @@ class IgnoringUidWrappingObjectInputStream(iss : InputStream?, private val kryo:
5152

5253
// the class in the local JVM that this descriptor represents.
5354
val localClass: Class<*> = try {
54-
Class.forName(resultClassDescriptor.name)
55+
kryo.classLoader.loadClass(resultClassDescriptor.name)
5556
} catch (e: ClassNotFoundException) {
5657
return resultClassDescriptor
5758
}

0 commit comments

Comments
 (0)