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

Nick Tolstokulakov (JIRA) jira-events at lists.jboss.org
Sun Jul 15 23:52:06 EDT 2012


    [ https://issues.jboss.org/browse/ISPN-2157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706039#comment-12706039 ] 

Nick Tolstokulakov commented on ISPN-2157:
------------------------------------------

ready 
https://github.com/infinispan/infinispan/pull/1215
                
> 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: Manik Surtani
>            Priority: Critical
>             Fix For: 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