File#link and File#symlink never report any errors
--------------------------------------------------

                 Key: JRUBY-1918
                 URL: http://jira.codehaus.org/browse/JRUBY-1918
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC1
         Environment: Latest JRuby 1.1RC1 from trunk
            Reporter: Vladimir Sizikov
         Attachments: file-link-no-errors.patch

No matter what kind of parameters are provided to File#link and File#symlink, 
they always return 0, and never raise any errors:

{noformat}
p File.link("not-exist", "not-exist-too")
{noformat}

MRI prints:
Errno::ENOENT: No such file or directory - not-exist or not-exist-too

JRuby prints:
0

The problem is due to fact that in both methods Exceptions are created but not 
thrown.

The proposed patch fixes the problem.

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