FileTest methods only work with string arguments
------------------------------------------------

                 Key: JRUBY-1470
                 URL: http://jira.codehaus.org/browse/JRUBY-1470
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
            Reporter: Dudley Flanders
         Attachments: file_size_file_arg_test.diff

FileTest methods in MRI work on filename strings or File objects, but in JRuby 
they only work with strings.

{noformat}
[EMAIL PROTECTED] jruby-trunk :> irb
>> FileTest.size(File.new('x','w+'))
=> 0

[EMAIL PROTECTED] jruby-trunk :> jirb
>> FileTest.size(File.new('x','w+'))
TypeError: can't convert File into String
{noformat}


-- 
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

Reply via email to