Skip to content

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 force-pushed the additional-jdk-serializers branch from 571e8f3 to c904b29 Compare December 16, 2022 11:38
@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.

2 participants