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

BytesObjectInput doesn't implement ObjectInput properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 9.1.0.Alpha1, 9.1.0.Final
    • 9.0.0.Final
    • Core
    • None

    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().

      Attachments

        Activity

          People

            dberinde@redhat.com Dan Berindei (Inactive)
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: