https://kotlinlang.org logo
Title
d

Desmond van der Meer

05/09/2023, 8:54 AM
Hi, I was wondering if there is any information about when a possible patch release will be done for Kotlin Serialization? We're currently facing this bug which prevents us from updating to Kotlin 1.8.20/21, which is a major blocker for us. I see that one of the devs already implemented a fix for it (very quickly!), but I have no idea when that will be released.
o

Oliver.O

05/09/2023, 10:56 AM
FYI: I have changed the issue title to
NullPointerException when obtaining a serializer of a sealed base class with a self-referencing property
Since the fix is in the compiler plugin, it will require a Kotlin release. This usually takes more time than just releasing a library update. (I'm just the issue reporter, I don't have information on the current release schedule.)
d

Desmond van der Meer

05/09/2023, 11:04 AM
Isn't the compiler plugin part of the kotlin serialization dependency?
o

Oliver.O

05/09/2023, 11:06 AM
No, it's an integral part of the Kotlin compiler. Like several other compiler plugins (
allopen
,
atomicfu
, ...).
d

Desmond van der Meer

05/09/2023, 11:07 AM
Ah right, then that explains why it broke with the Kotlin update. That's too bad, I guess we'll have to wait for Kotlin 1.9
Thanks for the explanation!
o

Oliver.O

05/23/2023, 2:21 PM
Good news: The fix is present in today's 1.9.0-Beta release, though not mentioned in the Changelog. I have created a tracking issue for that (KT-58841).
d

Desmond van der Meer

05/23/2023, 2:24 PM
Nice!