File.open(1) throws TypeError
-----------------------------
Key: JRUBY-1619
URL: http://jira.codehaus.org/browse/JRUBY-1619
Project: JRuby
Issue Type: Bug
Affects Versions: JRuby 1.x
Environment: Ubuntu Linux 7.10,
ruby 1.8.5 (2007-11-26 rev 4842) [i386-jruby1.1b1]
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
File.open(1) works fine under MRI, but throws TypeError under JRuby:
`open': can't convert Fixnum into String (TypeError)
It seems that JRuby tries to convert the FixNum to String in order to use it as
a file name, which is completely wrong for file descriptors.
This leads to 4 rubinius spec tests for file to be fail.
--
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