Details
-
Bug
-
Status: Resolved
-
Low
-
Resolution: Fixed
-
None
-
None
-
Low
Description
read(byte[], int, int) doesn't return -1 when the end of the stream is reached. Instead, it returns 0.
len = Math.min(len, copy.remaining());
copy.get(bytes, off, len);
return len;
copy.remaining() returns 0 when the end of the stream is reached.