rescue fails to catch subclasses of Errno::ENOENT
-------------------------------------------------

                 Key: JRUBY-4877
                 URL: http://jira.codehaus.org/browse/JRUBY-4877
             Project: JRuby
          Issue Type: Bug
          Components: Interpreter
    Affects Versions: JRuby 1.5
            Reporter: Tony Arcieri
         Attachments: enoent_bug.rb

The "rescue" operator fails to catch subclasses of Errno::ENOENT, even when 
they're explicitly specified.  This behavior does not match that of MRI.  See 
attached file.  Here's a comparison of this script on MRI vs. JRuby:

t...@virtualmac:~$ ruby enoent_bug.rb # On MRI
Everything turned out great!
t...@virtualmac:~$ rvm use jruby
Using jruby 1.5.0
t...@virtualmac:~$ ruby enoent_bug.rb 
enoent_bug.rb:4: No such file or directory - baz (Errno::ENOENT)


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