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

incorrect GridInputStream read method

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 5.2.0.Final
    • 5.1.5.FINAL
    • Core
    • None

      Method:
      @Override
      public int read() throws IOException {
      int remaining = getBytesRemainingInChunk();
      if (remaining == 0)

      { if (endReached) return -1; fetchNextChunk(); if (currentBuffer == null) return -1; else if (isLastChunk()) endReached = true; }

      int retval = currentBuffer[localIndex++];
      index++;
      return retval;
      }
      Line:
      int retval = currentBuffer[localIndex++];
      contains error and must be replaced by:
      int retval = 0x0ff&currentBuffer[localIndex++];

              rh-ee-galder Galder ZamarreƱo
              sibnick_jira Nick Tolstokulakov (Inactive)
              Archiver:
              rhn-support-adongare Amol Dongare

                Created:
                Updated:
                Resolved:
                Archived: