magro / kryo-serializers

More kryo serializers
Apache License 2.0
381 stars 120 forks source link

Can't use version 0.45 with JDK11 if i have generics in my code #122

Open shaharco opened 4 years ago

shaharco commented 4 years ago

If i'm using the SubListSerializers.ArrayListSubListSerializer() with JDK 11 i have to upgrade to version 0.45 and but then it breaks on KryoReflectionFactorySupport.getDefaultSerializer method because it uses ((FieldSerializer<?>) result).getFieldSerializerConfig() which doesn't exists anymore. Also kryo 5* doesn't support JDK11 when you have generics - https://github.com/EsotericSoftware/kryo/issues/654 So i'm pretty stuck - any way to solve this and still using JDK11?