Got compiler error when tried to compile: ``` @Ser...
# serialization
a
Got compiler error when tried to compile:
Copy code
@Serializable
interface EventData
error:
Copy code
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
what stops you from making it non-serializable?
a
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
it's for classes which do not have no-arg constructor