Fixed NETTY-101: ObjectDecoderInputStream.readObject() discards data and throws a StreamCorruptedException.

* Removed unnecessary readFully call in readObject()
This commit is contained in:
Trustin Lee 2009-01-06 02:06:00 +00:00
parent e9b841757a
commit c460c90dea

View File

@ -125,9 +125,6 @@ public class ObjectDecoderInputStream extends InputStream implements
"data length too big: " + dataLen + " (max: " + maxObjectSize + ')'); "data length too big: " + dataLen + " (max: " + maxObjectSize + ')');
} }
byte[] data = new byte[dataLen];
readFully(data);
return new CompactObjectInputStream(in, classLoader).readObject(); return new CompactObjectInputStream(in, classLoader).readObject();
} }