Github user rmetzger commented on a diff in the pull request:

    https://github.com/apache/flink/pull/304#discussion_r23071236
  
    --- Diff: 
flink-java/src/main/java/org/apache/flink/api/java/typeutils/runtime/KryoSerializer.java
 ---
    @@ -185,6 +187,8 @@ private void checkKryoInitialized() {
                        this.kryo.setRegistrationRequired(false);
                        this.kryo.register(type);
                        
this.kryo.setClassLoader(Thread.currentThread().getContextClassLoader());
    +
    +                   kryo.register(DateTime.class, new 
JodaDateTimeSerializer());
    --- End diff --
    
    I would suggest to add some more serializers from `de.javakaffee` .. since 
we have it already as a dependency, it doesn't hurt to add them. 
    I'm suggesting 
    - `jodatime/JodaIntervalSerializer`,
    - `guava/ImmutableListSerializer`,
    - `UnmodifiableCollectionsSerializer`, 
    - `GregorianCalendarSerializer`,
    - `EnumSetSerializer`,
    - `EnumMapSerializer`,
    - BitSetSerializer - serializer for java.util.BitSet
    - RegexSerializer - serializer for java.util.regex.Pattern
    - URISerializer - serializer for java.net.URI
    - UUIDSerializer - serializer for java.util.UUID



---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to