-
Notifications
You must be signed in to change notification settings - Fork 827
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scala 3 lazy vals break FieldSerializer #882
Comments
@nvollmar: Could you try it against this branch: https://github.com/EsotericSoftware/kryo/tree/scala-lazy-val With the added catch clause, |
Quickly ran my test case against a build of that branch and I can confirm this fixes the issue 👍 |
Great! I'll apply this fix and will release a new Kryo version in the coming days. Please report the issue to @reflect. It is unlikely that it will be fixed since the project is not actively maintained, but it makes sense to document it. |
Scala 3 changed the implementation of lazy vals. Classes containing a lazy val end up with a field called
0bitmap$1
:Trying to serialize an instance of such a class fails with
The text was updated successfully, but these errors were encountered: