Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@lancelet
Copy link
Contributor

@lancelet lancelet commented May 7, 2020

  • Added fix; modified test so that it will fail without the fix.
  • Description: The java.io.InputStream.read() method should return an Int. A value in the range 0 to 255 inclusive represents an unsigned byte value from the InputStream, while a value of -1 indicates that the end of the stream has been reached. Previously, calling .toInt on the raw Byte value was not performing the unsigned byte conversion required by read().

Fixes issue #3545

- Added fix; modified test so that it will fail without the fix.
- Description: The java.io.InputStream.read() method should return an Int. A
  value in the range 0 to 255 inclusive represents an unsigned byte value from
  the InputStream, while a value of -1 indicates that the end of the stream has
  been reached. Previously, calling .toInt on the raw Byte value was not
  performing the unsigned byte conversion required by read().
@lancelet lancelet requested a review from iravid as a code owner May 7, 2020 07:18
@CLAassistant
Copy link

CLAassistant commented May 7, 2020

CLA assistant check
All committers have signed the CLA.

Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

@iravid iravid merged commit 629f9de into zio:master May 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants