also, after upgrading to 1.0.0-RC I'm getting `Bac...
# serialization
k
also, after upgrading to 1.0.0-RC I'm getting
Back-end (JVM) Internal error: wrong bytecode generated
errors... any idea where to start with that one? (Java/Kotlin newb here)
j
Maybe using the new backend solves the problem. Check the official blog post about 1.4
k
I did try to upgrade everythign to the latest, plugins, kotlinc, serialization, etc, etc...
will try to reproduce a minimal example
j
Did you add it to gradle.properties?
k
no I haven't! what should go there?
didnt' see that mentioned anywhere... 😕
j
It is on the blog post, search for new backend
k
must be blind, can't even find the blog post 😄
k
still the same 😕 thanks anyway, would have never found that on my own...
starting from a blank
gradle init
seems to work... I'll try recreating the project, maybe that'll work
huh, it seems the error was because I had an
inline
class somewhere... weird
v
inline
classes are not supported, but still this is clearly a bug, you should have received a clear error messages “inline classes are not supported”. Could you please file a bug?
k
Couldn't manage to reproduce a minimal example, but in my codebase changing from
data class
to
inline class
causes the problem. For what is worth, I'm not using
@Serializable
annotation (that does give me the correct error saying that inline classes are not supported), I'm implementing a KSerializer by hand...
j
Serialization doesnt work with inline classes, it is not a Kotlin 1.4 problem