You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Eugene Smelik (JIRA)" <ji...@apache.org> on 2010/03/04 14:41:27 UTC

[jira] Created: (IO-231) FileUtils generate wrong exception message in isFileNewer method

FileUtils generate wrong exception message in isFileNewer method
----------------------------------------------------------------

                 Key: IO-231
                 URL: https://issues.apache.org/jira/browse/IO-231
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 1.4
            Reporter: Eugene Smelik
             Fix For: 2.0


{code}
if (!reference.exists()) {
    throw new IllegalArgumentException("The reference file '" + file + "' doesn't exist");
}
{code}
If second argument file does not exist isFileNewer method generates exception with message about first argument file does not exist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (IO-231) FileUtils generate wrong exception message in isFileNewer method

Posted by "Sebb (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-231?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sebb resolved IO-231.
---------------------

    Resolution: Fixed

Thanks for the report. Fixed in SVN:

URL: http://svn.apache.org/viewvc?rev=919101&view=rev
Log:
IO-231 FileUtils generate wrong exception message in isFileNewer method

Modified:
   commons/proper/io/trunk/src/java/org/apache/commons/io/FileUtils.java
   commons/proper/io/trunk/src/test/org/apache/commons/io/FileUtilsTestCase.java

> FileUtils generate wrong exception message in isFileNewer method
> ----------------------------------------------------------------
>
>                 Key: IO-231
>                 URL: https://issues.apache.org/jira/browse/IO-231
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.4
>            Reporter: Eugene Smelik
>             Fix For: 2.0
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> {code}
> if (!reference.exists()) {
>     throw new IllegalArgumentException("The reference file '" + file + "' doesn't exist");
> }
> {code}
> If second argument file does not exist isFileNewer method generates exception with message about first argument file does not exist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (IO-231) FileUtils generate wrong exception message in isFileNewer method

Posted by "Eugene Smelik (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12841273#action_12841273 ] 

Eugene Smelik commented on IO-231:
----------------------------------

The same problem exists in method isFileOlder()

> FileUtils generate wrong exception message in isFileNewer method
> ----------------------------------------------------------------
>
>                 Key: IO-231
>                 URL: https://issues.apache.org/jira/browse/IO-231
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 1.4
>            Reporter: Eugene Smelik
>             Fix For: 2.0
>
>   Original Estimate: 0.05h
>  Remaining Estimate: 0.05h
>
> {code}
> if (!reference.exists()) {
>     throw new IllegalArgumentException("The reference file '" + file + "' doesn't exist");
> }
> {code}
> If second argument file does not exist isFileNewer method generates exception with message about first argument file does not exist.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.