Sujit
12/18/2019, 12:14 AM@Serializable
class with lots of members like this:
@Serializable
class TooManyMembers {
val mem1: Int? = null
val mem2: Int? = null
.
.
.
val mem248: Int? = null
}
That's a class with 248 members. Instantiating this member with val obj = TooManyMembers()
throws this error at runtime:
Too many arguments in method signature in class file SerializationTests$TooManyMembers
java.lang.ClassFormatError: Too many arguments in method signature in class file SerializationTests$TooManyMembers
If I remove just one member, no more of that error. Is that really a limit (247) with numbers of members one can have in a @Serializable
class? What can I do if I have an object with more members? 247 seems way too low. This is with 0.14
and kotlin 1.3.61
Fudge
12/18/2019, 9:35 AM