Open jeffreytkj opened 1 month ago
Fury XLANG doesn't support kotlin yet, please use Language.JAVA
instead. Currently FURY support kotlin by implementing JDK serialization interface, we have not check kotlin class type and optimize for kotlin types yet. The xlang serialization won't follow JDK serialization interface, so we do not support kotlin for xlang serialization yet
Search before asking
Version
0.7.0
Component(s)
Java
Minimal reproduce step
class Test { var id: Long? = null var map: MutableMap<String, Any?>
}
fun main(args: Array) {
println("Hello World!")
}
What did you expect to see?
Able to serialize Test object and deserialize it to see the values of the properties with Language.XLANG
What did you see instead?
Class class kotlin.collections.MutableMapWithDefaultImpl doesn't have a no-arg constructor
java.lang.RuntimeException: Class class kotlin.collections.MutableMapWithDefaultImpl doesn't have a no-arg constructor\n\tat org.apache.fury.reflect.ReflectionUtils.getCtrHandle(ReflectionUtils.java:126)\n\tat org.apache.fury.serializer.collection.AbstractMapSerializer.newMap(AbstractMapSerializer.java:791)
Anything Else?
No response
Are you willing to submit a PR?