Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.1.2
-
None
-
None
Description
It currently does not work to do this:
env.registerTypeWithKryoSerializer(TreeMultimap.class, JavaSerializer.class);
instead on needs to do that:
env.registerTypeWithKryoSerializer(TreeMultimap.class, (Class<? extends Serializer<?>>) JavaSerializer.class);
The fix would be to change the signature of the environment method from
public void registerTypeWithKryoSerializer(Class<?> type, Class<? extends Serializer<?>> serializerClass)
to
public void registerTypeWithKryoSerializer(Class<?> type, Class<? extends Serializer> serializerClass)