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 additional safe serializers for commonly used JDK classes #930

Merged
merged 1 commit into from
Dec 16, 2022

Conversation

theigl
Copy link
Collaborator

@theigl theigl commented Dec 16, 2022

This PR adds some additional safe serializers for common JDK classes. These serializers only rely on the public API of the types and do not require --add-opens in JDK17+.

  • PatternSerializer
  • URISerializer
  • UUIDSerializer
  • AtomicBooleanSerializer
  • AtomicIntegerSerializer
  • AtomicLongSerializer
  • AtomicReferenceSerializer

Unfortunately, we cannot register these serializers by default in Kryo 5 because it would break backwards compatibility. It makes sense to provide them though and we will register them by default in Kryo 6.

See also #885.

@theigl theigl self-assigned this Dec 16, 2022
@theigl theigl merged commit b6fd8f9 into master Dec 16, 2022
@theigl theigl deleted the additional-jdk-serializers branch December 16, 2022 11:53
@theigl theigl mentioned this pull request Dec 20, 2022
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