[infinispan-issues] [JBoss JIRA] (ISPN-2157) incorrect GridInputStream read method

Galder Zamarreño (JIRA) jira-events at lists.jboss.org
Thu Jul 19 06:00:09 EDT 2012


     [ https://issues.jboss.org/browse/ISPN-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Galder Zamarreño updated ISPN-2157:
-----------------------------------

        Status: Resolved  (was: Pull Request Sent)
    Resolution: Done

    
> incorrect GridInputStream read method
> -------------------------------------
>
>                 Key: ISPN-2157
>                 URL: https://issues.jboss.org/browse/ISPN-2157
>             Project: Infinispan
>          Issue Type: Bug
>          Components: Core API
>    Affects Versions: 5.1.5.FINAL
>            Reporter: Nick Tolstokulakov
>            Assignee: Galder Zamarreño
>            Priority: Critical
>             Fix For: 5.2.0.ALPHA2, 5.2.0.FINAL
>
>
> 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++];

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the infinispan-issues mailing list