Candyjing1024 / kryo

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

Patch to get KryoNet working with Kryo 2.21 #125

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Kryonet fails tests if you try to use kryo 2.21 with it.  Attached is a patch 
to apply to both kryo and kryonet to fix the issues.

Patch summary:
* Fix ByteBufferInputStream#read to not return -1 (indicating EOF) if length is 
zero.
* New ThrowableSerializer, because FieldSerializer won't work on Throwables as 
of Java 1.7
* KryoSerialization now supports references (and requires them for some RMI 
tests)

Original issue reported on code.google.com by robin.ki...@gmail.com on 18 Aug 2013 at 4:32

Attachments: