Roman Leventov created IO-581:
---------------------------------

             Summary: Potential issues with File.length()
                 Key: IO-581
                 URL: https://issues.apache.org/jira/browse/IO-581
             Project: Commons IO
          Issue Type: Bug
            Reporter: Roman Leventov


File.length() is called multiple times in the code of the project, some of them 
might be problematic due to the contract of this method: it silently returns 0 
in case of any I/O error.

Examples: FileUtils.readFileToByteArray(), FileUtils.sizeOf(), etc.

Some uses of File.lastModified() might be problematic for similar reasons.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to