The problem is in com\esotericsoftware\kryo\Compressor.java
line 78
buffer.putShort((short)(outputBuffer.limit()));
line 91
int length = buffer.getShort();
I can see 2 solutions for the problem:
1. Throw exception if outputBuffer.limit() > (int)Short.MAX_VALUE
2. buffer.putInt(outputBuffer.limit());int length = buffer.getInt();
Current situation is very confusing, because no exception generated and reading
of object does not work properly.
Kryo 1.04
Thanks in advance for great serialization library.
Steve Romankov stepan(at)romankov.name
Original issue reported on code.google.com by ste...@romankov.name on 17 Feb 2012 at 11:35
Original issue reported on code.google.com by
ste...@romankov.name
on 17 Feb 2012 at 11:35