Java cannot access Kotlin's Companion
I am trying to use kotlinx serialization in java code. The problem I encounter is that I cannot use Companion object in java code to access it's static serializer() method which is generated by kotlin serializaton plugin.
Here is the kotlin code that decalres a serializable class:
@kotlinx.serialization.Serializable
data class MyData(private val data: String)
My mavem pom.xml file is shows below
4.0.0
org.example
TestProject
1.0-SNAPSHOT
18
18
1.7.0
1.3.3...