-
Notifications
You must be signed in to change notification settings - Fork 823
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
Serializing and Deserializing $$Lambda$ Anonymous Classes #714
Comments
Hi All, I was using SubZero and by default, it won't register the following serializers:
You must add your own Serilizable:
I need bunch of custom sterilizer so I had to add :
I hope this helps someone. Thanks, |
@bmistry13 thank you!!! This fixed our issue. We migrated from scala 2.11 to 2.12, kryo 4.0.2 and kept having serialization issues with lambdas. Adding these two lines fixed it
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi All,
I am trying to Serialize/Deserialise JGraphT Object SimpleDirectedGraph into Hazelcast via SubZero Library and it has Supplier which of Lamda type DefaultEdge.class.
The serialization is happening but serialization has issue with Anonymous class not found.
Can you please suggest how I can overcome this issue? I tried kryo.getFieldSerializerConfig().setOptimizedGenerics(false); but it did not work for me. Any help is greatly appreciated.
I have looked at a similar issue here: #469 where the recommendation is to use Serializable but it still did not work.
For reference, here is the internal structure of Graph :
https://github.com/jgrapht/jgrapht/blob/master/jgrapht-core/src/main/java/org/jgrapht/graph/AbstractBaseGraph.java#L74
Thanks,
Bhavesh
The text was updated successfully, but these errors were encountered: