Add additional safe serializers for commonly used JDK classes by theigl · Pull Request #930 · EsotericSoftware/kryo (original) (raw)
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.