[PATCH] File.mtime should raise exception if file is not found
--------------------------------------------------------------

                 Key: JRUBY-1245
                 URL: http://jira.codehaus.org/browse/JRUBY-1245
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
         Environment: rev4066
            Reporter: Dmitry Verkhovsky
         Attachments: patch_r4066_2.txt

irb(main):002:0> File.mtime("smth_that_doesnt_exist") rescue nil
=> nil

irb(main):001:0> File.mtime("smth_that_doesnt_exist") rescue nil
=> Wed Dec 31 19:00:00 EST 1969
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ SHOULD BE NIL

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