Skip to content
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

Add serializers for unmodifiable and synchronized collections #1154

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Dec 8, 2024

This PR adds serializers for JDK unmodifiable and synchronized collections.

This has been one of the most requested features for Kryo, but I have so far rejected all requests and redirected users to the kryo-serializers project because it is not possible to implement these serializers without reflection. Since this comes up again and again an we already have the same issue with the ClosureSerializer that has been part of Kryo for many years, I decided to give up my opposition.

The serializers need to be registered manually for now to maintain backwards compatibility, but will be added as default serializers in Kryo 6.

Note: The unsafe logic will probably have to be replaced with Varhandles for JDK24+.

#689
#885
#909
#913
#997
#1022

@theigl theigl self-assigned this Dec 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

1 participant