[windows] JRuby reports wrong file sizes when native support is enabled
-----------------------------------------------------------------------
Key: JRUBY-4149
URL: http://jira.codehaus.org/browse/JRUBY-4149
Project: JRuby
Issue Type: Bug
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
1.
{code}
jruby -J-Djruby.native.enabled=true -e "t = File.new('blah', 'w+'); t <<
'123'; t.flush; p t.stat.size; p File.size('blah')"
0
3
{code}
MRI returns always 3. JRuby with native disabled also returns correctly 3 and 3.
2.
Also, similar issues reported for Tempfile:
{code}
D:\work\jruby-dev>jruby -J-Djruby.native.enabled=true -rtempfile -e "t =
Tempfile.new('blah'); t << '123'; p t.length; p t.size; p t.stat.size"
0
0
0
{code}
MRI returns 3 always. JRuby with native disabled also return 3 always.
--
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