Supporting IO.ungetbyte #697

merged 1 commit into from May 4, 2013


None yet

2 participants


We can use ungetc to support ungetbyte, that will left only 1 spec failing which is an edge case. What happens is that when trying to push the number 4095, like the specs do on the ChanelStream class that int will be convert to a byte (-1) and inside jruby internals -1 is considered EOF, so for we to support this we would have to change a lot of things. The method willl work for every number but 4095 because of this case.

@headius headius merged commit 87605ef into jruby:master May 4, 2013

1 check failed

default The Travis build could not complete due to an error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment