Fixed an issue: NETTY-20 (Incorrect object length constraint in ObjectEncoder and ObjectEncoderOutputStream)

This commit is contained in:
Trustin Lee 2008-08-19 10:17:00 +00:00
parent c76451b874
commit 65eda0902d

View File

@ -49,7 +49,7 @@ public class ObjectEncoderOutputStream extends OutputStream implements
if (out == null) {
throw new NullPointerException("out");
}
if (estimatedLength < 8) {
if (estimatedLength < 0) {
throw new IllegalArgumentException("estimatedLength: " + estimatedLength);
}