IO#sysseek after IO#sysread raises IOError
------------------------------------------
Key: JRUBY-2770
URL: http://jira.codehaus.org/browse/JRUBY-2770
Project: JRuby
Issue Type: Bug
Components: Core Classes/Modules
Affects Versions: JRuby 1.1.2
Environment: Latest JRuby 1.1.3-dev
Reporter: Vladimir Sizikov
Assignee: Vladimir Sizikov
Fix For: JRuby 1.1.3
ruby -e "io = File.open('data.dat', 'r'); p io.sysseek(-2, IO::SEEK_END);
io.sysread(1); io.sysseek(-2, IO::SEEK_END)" => 11
jruby -e "io = File.open('data.dat', 'r'); p io.sysseek(-2, IO::SEEK_END);
io.sysread(1); io.sysseek(-2, IO::SEEK_END)" ==>
:1: sysseek for buffered IO (IOError)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
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