Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
1.5.2
-
None
-
None
Description
the int value returned from the method should be in range 0-255 for a byte read, or -1 when EOF was reached, as described in InputStream class javadoc.
Fix is to change the line in read() method:
return byteBuf[0];
to
return byteBuf[0] & 0xFF;
Attachments
Attachments
Issue Links
- is duplicated by
-
FLUME-2074 ResettableInputStream returns Signed Data when parsing binary stream
- Open