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

FileUtils.copyFile(File srcFile, File destFile): Missing IllegalArgumentException in Javadoc

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 2.11.0
    • 2.12.0
    • Utilities
    • None

    Description

      Method FileUtils.copyFile(File srcFile, File destFile) throws  IllegalArgumentException, when called with identical files. This is not documented in Javadoc.

      The IllegalArgumentException is thrown by FileUtils.requireCanonicalPathsNotEquals(File file1, File file2) in FileUtils.copyFile(File srcFile, File destFile, final CopyOption... copyOptions).

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhochreiter Rainer Hochreiter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: