IO#rewind ... doesn't. (when backed by a ByteArrayInputStream). ---------------------------------------------------------------
Key: JRUBY-5891 URL: https://jira.codehaus.org/browse/JRUBY-5891 Project: JRuby Issue Type: Bug Components: Core Classes/Modules Affects Versions: JRuby 1.6.2, JRuby 1.5.6 Environment: OS X; Java 1.6.0_24 Reporter: Jon Cooper Priority: Minor See: https://gist.github.com/1043829 which includes a test case. If you have a ByteArrayInputStream, then call #to_io on it, then you read from the stream and #rewind it, the offset into the stream doesn't change. I believe this is due to lseek dropping out the bottom of a conditional when it should perhaps throw an exception. I am happy to provide a JUnit test and patch if folks agree with me that this is the wrong behavior. I just spent the better part of a day fixing broken behavior whose genesis was this issue. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email