Skip to content

Custom exception serialization fix #2209

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 16, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import com.esotericsoftware.kryo.kryo5.Kryo
import com.esotericsoftware.kryo.kryo5.KryoException
import com.esotericsoftware.kryo.kryo5.io.Input
import com.esotericsoftware.kryo.kryo5.serializers.JavaSerializer
import org.utbot.framework.plugin.api.util.utContext
import java.io.InputStream
import java.io.ObjectInputStream
import java.io.ObjectStreamClass
Expand Down Expand Up @@ -51,7 +52,7 @@ class IgnoringUidWrappingObjectInputStream(iss : InputStream?, private val kryo:

// the class in the local JVM that this descriptor represents.
val localClass: Class<*> = try {
Class.forName(resultClassDescriptor.name)
kryo.classLoader.loadClass(resultClassDescriptor.name)
} catch (e: ClassNotFoundException) {
return resultClassDescriptor
}
Expand Down