-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 1.5.2
-
Fix Version/s: 1.7.0
-
Component/s: None
-
Labels:None
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;
- is duplicated by
-
FLUME-2074 ResettableInputStream returns Signed Data when parsing binary stream
-
- Open
-