Sergey Shanshin

Results 56 issues of Sergey Shanshin

Relates #1918 Benchmarks for improved serialization plugin Test | Old, ops/ms | ±, ops/ms |   | New, ops/ms | ±, ops/ms |   | Boost -- | -- | -- |...

Resolves Kotlin/kotlinx.serialization#683 Kotlin/kotlinx.serialization#1372

**Describe the bug** Errors occurred when trying to deserialize instances for parameterized abstract and sealed classes. **To Reproduce** ``` @Serializable sealed class TypedSealedClass(val a: T) { @Serializable data class Child(val...

bug
compiler-plugin
Priority: 1

The following types are given: ``` object PlainSerializer: ToDoSerializer("my-plain") object EnumSerializer: ToDoSerializer("my-enum") class Plain(val i: Int) enum class EnumType { A, B } ... abstract class ToDoSerializer(descriptorName: String): KSerializer {...

bug
compiler-plugin
runtime
test matrix

When trying to execute such code ``` @Serializer(forClass = Data::class) class MySerializer(val serializer: KSerializer) @Serializable(MySerializer::class) class Data(val t: T) ... Json.encodeToString(Data(1)) ``` an runtime error occurs ``` Exception in thread...