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

incorrect GridInputStream read method

    XMLWordPrintable

Details

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

    Description

      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++];

      Attachments

        Activity

          People

            rh-ee-galder Galder ZamarreƱo
            sibnick_jira Nick Tolstokulakov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: