How do you get the auto generated KSerializer from Java?
✅ 1
hfhbd
12/16/2022, 12:05 PM
Okay, it will compile in the ususal way but the IDE shows an error:
Cannot resolve symbol 'Companion'.
b
Ben Woodworth
12/17/2022, 3:09 AM
I wouldn't be surprised if java's compiling before kotlin (and its serializer generating plugin) does, so the generated companion object doesn't exist yet. that's just a guess though
Ben Woodworth
12/17/2022, 3:10 AM
a quick solution until someone has something better could be adding a function in kotlin that calls/gets the serializer, then calling that from java