Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

InputStream from StreamConverters.asInputStream respects read() contract #21954

Merged
merged 1 commit into from
Dec 7, 2016

Conversation

ortibazar
Copy link
Contributor

Refs #21943

@akka-ci
Copy link

akka-ci commented Dec 6, 2016

Can one of the repo owners verify this patch?

@patriknw
Copy link
Member

patriknw commented Dec 6, 2016

OK TO TEST

Copy link
Member

@patriknw patriknw left a comment

Choose a reason for hiding this comment

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

LGTM

@akka-ci akka-ci added validating PR is currently being validated by Jenkins tested PR that was successfully built and tested by Jenkins labels Dec 6, 2016
@akka-ci
Copy link

akka-ci commented Dec 6, 2016

Test PASSed.

@akka-ci akka-ci removed the validating PR is currently being validated by Jenkins label Dec 6, 2016
@@ -117,7 +117,7 @@ private[akka] class InputStreamAdapter(
@scala.throws(classOf[IOException])
override def read(): Int = {
val a = Array[Byte](1)
if (read(a, 0, 1) != -1) a(0)
if (read(a, 0, 1) != -1) a(0) & 0xff
Copy link
Member

Choose a reason for hiding this comment

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

eh, sign extension. The wonders of not having unsigned types. Great catch btw.

@drewhk drewhk merged commit 31e61d0 into akka:master Dec 7, 2016
@ktoso
Copy link
Member

ktoso commented Dec 8, 2016

Backporting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tested PR that was successfully built and tested by Jenkins to-be-backported
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants