You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Roman Leventov (JIRA)" <ji...@apache.org> on 2018/06/28 13:39:00 UTC
[jira] [Created] (IO-581) Potential issues with File.length()
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)