[ 
https://issues.apache.org/jira/browse/IO-625?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mikko Maunu updated IO-625:
---------------------------
    Description: 
When srcDir parameter to FileUtils.copyDirectoryToDirectory method is not a 
directory, exception message contains destDir instead of srcDir.

Related issue is, that based on Javadocs one would expect IOException instead 
of IllegalArgumentException. Changing type of the exception would probably 
break some clients. Fixing message seems reasonable.

  was:
When destDir parameter to FileUtils.copyDirectoryToDirectory method is not a 
directory, exception message contains srcDir instead of destDir.

Related issue is, that based on Javadocs one would expect IOException instead 
of IllegalArgumentException. Changing type of the exception would probably 
break some clients. Fixing message seems reasonable.


> FileUtils.copyDirectoryToDirectory does not reflect srcDir in exception 
> message when srcDir is not a directory
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: IO-625
>                 URL: https://issues.apache.org/jira/browse/IO-625
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.6
>            Reporter: Mikko Maunu
>            Priority: Trivial
>             Fix For: 2.7
>
>         Attachments: FileUtilsCopyDirectoryToDirectoryTestCase.java
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> When srcDir parameter to FileUtils.copyDirectoryToDirectory method is not a 
> directory, exception message contains destDir instead of srcDir.
> Related issue is, that based on Javadocs one would expect IOException instead 
> of IllegalArgumentException. Changing type of the exception would probably 
> break some clients. Fixing message seems reasonable.



--
This message was sent by Atlassian Jira
(v8.3.2#803003)

Reply via email to