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

FileUtils generate wrong exception message in isFileNewer method

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4
    • 2.0
    • Utilities
    • None

    Description

      if (!reference.exists()) {
          throw new IllegalArgumentException("The reference file '" + file + "' doesn't exist");
      }
      

      If second argument file does not exist isFileNewer method generates exception with message about first argument file does not exist.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sever Eugene Smelik
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.05h
                0.05h
                Remaining:
                Remaining Estimate - 0.05h
                0.05h
                Logged:
                Time Spent - Not Specified
                Not Specified