You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Ashish b (Jira)" <ji...@apache.org> on 2021/02/08 10:03:02 UTC

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

    [ https://issues.apache.org/jira/browse/IO-707?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17280911#comment-17280911 ] 

Ashish b commented on IO-707:
-----------------------------

[~xf01213]

Can you assign the issue to me ?

> 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
>            Priority: Major
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> 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)