You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Jiangwei Liu (Jira)" <ji...@apache.org> on 2022/08/06 03:53:00 UTC
[jira] [Comment Edited] (IO-778) FileUtils.copyFile(File srcFile, File destFile): Missing IllegalArgumentException in Javadoc
[ https://issues.apache.org/jira/browse/IO-778?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17576125#comment-17576125 ]
Jiangwei Liu edited comment on IO-778 at 8/6/22 3:52 AM:
---------------------------------------------------------
Hi [~ggregory] ,
from the doc, I agree with you,
I reviewed the master code, The {{IllegalArgumentException has been added into the doc.}}
was (Author: JIRAUSER293868):
Hi [~ggregory] ,
from the doc, I agree with you, The {{IllegalArgumentException should be add into the doc.}}
> FileUtils.copyFile(File srcFile, File destFile): Missing IllegalArgumentException in Javadoc
> --------------------------------------------------------------------------------------------
>
> Key: IO-778
> URL: https://issues.apache.org/jira/browse/IO-778
> Project: Commons IO
> Issue Type: Wish
> Components: Utilities
> Affects Versions: 2.11.0
> Reporter: Rainer Hochreiter
> Priority: Trivial
>
> 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).}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)