gaob13 / kryo

Automatically exported from code.google.com/p/kryo
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Unable to set custom default serializer #58

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
The setter for the field:
private Class<? extends Serializer> defaultSerializer = FieldSerializer.class;
In Kryo.java:129 doesn't take the correct argument.

The argument is specified as a: Class<Serializer> effectively not allowing the 
user to set (for example) a CompatibleFieldSerializer as default serializer. 
The argument type should be a Class<? extends Serializer> to match the field 
type and allow subtypes to be set.

We currently use reflection to manipulate the field at runtime to set the 
default serializer.

Version: 2.05

Original issue reported on code.google.com by dries.sc...@gmail.com on 20 Apr 2012 at 6:02

GoogleCodeExporter commented 8 years ago
This issue was closed by revision r215.

Original comment by nathan.s...@gmail.com on 20 Apr 2012 at 7:15

GoogleCodeExporter commented 8 years ago
Woops, thanks! Fixed in r215.

Original comment by nathan.s...@gmail.com on 20 Apr 2012 at 7:15