Populate the test for this and ensure the test passes.
git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@
1143022 13f79535-47bb-0310-9956-
ffa450edef68
invokecount.addAndGet(1);
Object message = null;
if ( cls == null ) cls = new ClassLoader[0];
- if (data != null) {
+ if (data != null && length > 0) {
InputStream instream = new ByteArrayInputStream(data,offset,length);
ObjectInputStream stream = null;
stream = (cls.length>0)? new ReplicationStream(instream,cls):new ObjectInputStream(instream);
public class TestXByteBuffer extends TestCase {
public void testEmptyArray() throws Exception {
- // TODO
+ Object obj = XByteBuffer.deserialize(new byte[0]);
+ assertNull(obj);
}
public void testSerializationString() throws Exception {