You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The kotlin file looks fine and kotlinc is able to compile *.kt to *.class without any issue. But it's not possible to use *.jar with these *.class files in android project.
The same issue was already resolved for java compiler: #691
Another issue related to high number of fields: #1575
Possible solutions:
Limit the number of parameters in the same way as for java output and behave in the same way as java_interop = true, when the limit is reached
Hello,
if proto message contains more than 255 fields it generates the
copy
method with the same number of parameters. This will fail in JVM environment because the jvm supports up to 255 parameters https://docs.oracle.com/javase/specs/jvms/se16/html/jvms-4.html#jvms-4.3.3.The kotlin file looks fine and kotlinc is able to compile *.kt to *.class without any issue. But it's not possible to use *.jar with these *.class files in android project.
The same issue was already resolved for java compiler: #691
Another issue related to high number of fields: #1575
Possible solutions:
java_interop = true
, when the limit is reachedUnfortunately both of the solutions can cause breaking changes in generated *.kt files
The text was updated successfully, but these errors were encountered: