Thread
#serialization
    a

    Antanas A.

    3 years ago
    Got compiler error when tried to compile:
    @Serializable
    interface EventData
    error:
    e: java.lang.IllegalStateException: Backend Internal error: Exception during code generation
    Cause: Back-end (JVM) Internal error: @Serializable annotation on class EventData would be ignored because it is impossible to serialize it automatically. Provide serializer manually via e.g. companion object
    This interface will be used as a marker interface and it will be used on data class X(...) : EventData
    s

    sandwwraith

    3 years ago
    what stops you from making it non-serializable?
    a

    Antanas A.

    3 years ago
    don't know, from experience serializer is complaining when superclasses was not marked as @Serializable
    or it's only for classes?
    ok, Thanks! worked
    s

    sandwwraith

    3 years ago
    it's for classes which do not have no-arg constructor