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
Describe the bug
It fails to serialize a SAM instance created in place using lambda notation. Regular object SAM instances derserialize correctly using the same protocol.
The line link points to the failing example. I've added a few experiments above that all work fine. I've also added a grade project context to the example for better reproducibility
I'd think that the class/variable names created by the kotlin compiler are legit JVM bytecode, but are different compared to what the java compiler would typically create here.
Environment:
OS: Windows10
JDK Version: 11
Kryo Version: 5.2.0
The text was updated successfully, but these errors were encountered:
Describe the bug
It fails to serialize a SAM instance created in place using lambda notation. Regular object SAM instances derserialize correctly using the same protocol.
To Reproduce
https://github.com/holgerbrandl/kryo-kotlin-sam/blob/master/src/main/java/KyroSimpleCQ.kt#L53
The line link points to the failing example. I've added a few experiments above that all work fine. I've also added a grade project context to the example for better reproducibility
As it might help to trace down the root cause, I've also added the generated JVM bytecode to the repo under https://github.com/holgerbrandl/kryo-kotlin-sam/tree/master/compiler_output
I'd think that the class/variable names created by the kotlin compiler are legit JVM bytecode, but are different compared to what the java compiler would typically create here.
Environment:
The text was updated successfully, but these errors were encountered: