diff --git a/utbot-framework-api/src/main/kotlin/org/utbot/framework/process/kryo/KryoHelper.kt b/utbot-framework-api/src/main/kotlin/org/utbot/framework/process/kryo/KryoHelper.kt index 8b6ce2cdbf..3fb47e2558 100644 --- a/utbot-framework-api/src/main/kotlin/org/utbot/framework/process/kryo/KryoHelper.kt +++ b/utbot-framework-api/src/main/kotlin/org/utbot/framework/process/kryo/KryoHelper.kt @@ -6,6 +6,7 @@ import com.esotericsoftware.kryo.kryo5.io.Input import com.esotericsoftware.kryo.kryo5.io.Output import com.esotericsoftware.kryo.kryo5.objenesis.instantiator.ObjectInstantiator import com.esotericsoftware.kryo.kryo5.objenesis.strategy.StdInstantiatorStrategy +import com.esotericsoftware.kryo.kryo5.serializers.JavaSerializer import com.esotericsoftware.kryo.kryo5.util.DefaultInstantiatorStrategy import com.jetbrains.rd.util.lifetime.Lifetime import com.jetbrains.rd.util.lifetime.throwIfNotAlive @@ -109,6 +110,8 @@ internal class TunedKryo : Kryo() { // TODO: JIRA:1492 addDefaultSerializer(java.lang.Throwable::class.java, ThrowableSerializer()) + addDefaultSerializer(java.lang.StackTraceElement::class.java, JavaSerializer()) + val factory = object : SerializerFactory.FieldSerializerFactory() {} factory.config.ignoreSyntheticFields = true factory.config.serializeTransient = false