[infinispan-issues] [JBoss JIRA] (ISPN-2157) incorrect GridInputStream read method
Nick Tolstokulakov (JIRA)
jira-events at lists.jboss.org
Thu Jul 12 23:18:12 EDT 2012
Nick Tolstokulakov created ISPN-2157:
----------------------------------------
Summary: 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
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¤tBuffer[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