Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-7784

BytesObjectInput doesn't implement ObjectInput properly

    Details

      Description

      The java.io.ObjectInput#read() javadoc says implementations should return -1 if the end of the stream is reached, but BytesObjectInput throws an ArrayIndexOutOfBoundsException.

      Actually, read() is only used because ExternalJBossMarshaller.JBossByteInput doesn't implement read(byte[]). This makes unmarshalling of external objects slower than it should be, because InputStream.read(byte[]) fills the buffer by repeatedly calling read().

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                dan.berindei Dan Berindei
                Reporter:
                dan.berindei Dan Berindei
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: