File#delete silently returns when file can't be deleted
-------------------------------------------------------

                 Key: JRUBY-2225
                 URL: http://jira.codehaus.org/browse/JRUBY-2225
             Project: JRuby
          Issue Type: Bug
          Components: Core Classes/Modules
    Affects Versions: JRuby 1.1RC2
         Environment: Latest JRuby 1.1RC2
            Reporter: Vladimir Sizikov
            Assignee: Vladimir Sizikov
             Fix For: JRuby 1.1


According to ruby-doc, and according to MRI behavior, when file cannot be 
deleted, an exception is being thrown.
JRuby just returns "false" which is not permitted, since #delete and #unlink 
should only return numbers.

This is very noticeable on Windows, when the system doesn't allow to delete 
currently opened files, so all those non-deleted files just pollute the file 
system (for example, after 'ant test').

Fix is coming.

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