You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2021/02/17 20:05:00 UTC

[jira] [Resolved] (IO-581) Potential issues with File.length()

     [ https://issues.apache.org/jira/browse/IO-581?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory resolved IO-581.
--------------------------------
    Resolution: Incomplete

No reply in 2 years, closing.

 

> 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
>            Priority: Major
>
> 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
(v8.3.4#803005)