Open GoogleCodeExporter opened 9 years ago
Sorry for an inaccuracy.
I`ve serialized a List<Object> not a Object. The difference was between two
List<> from different data sources.
There was no proxy on Database object.
Code snippet:
(the parameter List<X> described in ObjectStructure.7z)
private static Kryo kryo =new Kryo();
private static MessageDigest md5= MessageDigest.getInstance("MD5");
public static byte[] getMd5(List<X> object){
ByteArrayOutputStream b= new ByteArrayOutputStream(1000);
Output output = new Output(b);
serialize(object,output);
return md5.digest(b.toByteArray());
}
private static void serialize(Object object, Output output){
try{
kryo.writeObject(output, output);
}finally{
output.close();
}
}
Original comment by a.solov...@tinkoffdigital.ru
on 2 Apr 2013 at 9:57
Original issue reported on code.google.com by
a.solov...@tinkoffdigital.ru
on 22 Mar 2013 at 9:16Attachments: