You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Boris Unckel (Jira)" <ji...@apache.org> on 2021/01/27 14:30:00 UTC

[jira] [Created] (IO-707) Add optional early error detection as postcondition check

Boris Unckel created IO-707:
-------------------------------

             Summary: Add optional early error detection as postcondition check
                 Key: IO-707
                 URL: https://issues.apache.org/jira/browse/IO-707
             Project: Commons IO
          Issue Type: Improvement
          Components: Utilities
    Affects Versions: 2.8.0
            Reporter: Boris Unckel


The current version does not include an optional way to detect errors with the underlying filesystem and/or logic early.

Due to performance reason and/or design decision, the result of delete or create directories/files does not include a check wheter the delete or create was successful. It "only" relies on trust to the underlying operations of the JDK and/or the completeness of own unit tests.

To have the option to check things, without having additional commons-io proprietary options and without a performance impact for regular operations the Java 1.4 keyword "assert" should be used.

Current project profits in case of detail analysis. Downstream projects having own unit tests for IO will profit.

PR with proposal will follow.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)