Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-707

Add optional early error detection as postcondition check

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 2.8.0
    • None
    • Utilities
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            xf01213 Boris Unckel
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m