Im trying access the data class in Java and in order to use I have applied @JvmOverloads constructor.
Is there any limit for number of fields in the data class, when using @JvmOverloads ?
It’s failing at run time.
java.lang.IllegalStateException: Backend Internal error: Exception during code generation.
Just to be clear, you are getting a code generation exception during runtime? Or is the error message of the exception “Backend Internal error: Exception during code generation”?
In either case, can you show a short example of what you are doing? If you think it has something to do with the number of parameters, how many are there?
yes, I’m getting a code generation exception during runtime.
And the error message of exception is “Backend Internal error: Exception during code generation”.
Data class have 40 parameters.
ex : data class DataClass @JvmOverloads constructor( val field1: Double? = null, etc. )
When I tested with reducing limit one by one and it worked with 33 fields. so more than 33 its giving an error.
any solution helps.
Note : version “1.2.71” is having a bug and when I try with “1.3.72” it’s working.