Inline class serialization/deserialization doesn’t...
# serialization
t
Inline class serialization/deserialization doesn’t work in
1.3.50-eap-5
even with custom serializer.
Copy code
@Serializable(with=KeySerializer::class)
inline class Key(val source:String)
Error:
Copy code
Inline class serialization not supported
No problem in
1.3.41
. Is it planned regression for
1.3.50
?
👌 1
👍 1
@sandwwraith Will it be fixed in next
eap
release of
serialization
?
s
Nope, it is intended. We don't support inline classes officially. I'm surprised that custom serializer even worked...
t
It has worked until
1.3.50-eap-5
.
Will Kotlin have OOB serialization support for inline classes? Or inline classes will be removed at all?
s
Yes, we have plans to support inline classes in kotlinx.serialization
i
@sandwwraith Will it be supported in
1.3.50
?
s
Nope
i
@sandwwraith Is there some information about planned version?
p
This whould sooo simplify my code. I have conversions all over the place