]
Nick Tolstokulakov commented on ISPN-2157:
------------------------------------------
ready
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¤tBuffer[localIndex++];
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: