Closed GoogleCodeExporter closed 8 years ago
I added copy methods to all serializers of the kryo-serializers addon, and
pushed kryo-serializers-0.24 to sonatype. In some hours it should be in maven
central.
Original comment by martin.grotzke
on 29 Sep 2013 at 10:58
Hi Martin,
I saw your change into ArrayAsListSerializer but I didn't found copy method.
https://github.com/magro/kryo-serializers/blob/master/src/main/java/de/javakaffe
e/kryoserializers/ArraysAsListSerializer.java
I saw a comment on default constructor, when you set class to immutable:
public ArraysAsListSerializer() {
try {
_arrayField = Class.forName( "java.util.Arrays$ArrayList" ).getDeclaredField( "a" );
_arrayField.setAccessible( true );
} catch ( final Exception e ) {
throw new RuntimeException( e );
}
// Immutable causes #copy(obj) to return the original object
setImmutable(true);
}
So, copy method don't returns a copy of object, but the original.
You will implement the copy method?
Thanks.
Original comment by agentilr...@gmail.com
on 3 Oct 2013 at 12:02
Original issue reported on code.google.com by
agentilr...@gmail.com
on 27 Sep 2013 at 11:26