You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Maciej Biłas (JIRA)" <ji...@apache.org> on 2011/03/10 14:09:59 UTC

[jira] Created: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
----------------------------------------------------------------------

                 Key: IO-264
                 URL: https://issues.apache.org/jira/browse/IO-264
             Project: Commons IO
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 2.0
            Reporter: Maciej Biłas
            Priority: Trivial


FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] Resolved: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

Posted by "Niall Pemberton (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Niall Pemberton resolved IO-264.
--------------------------------

       Resolution: Fixed
    Fix Version/s: 2.1
         Assignee: Niall Pemberton

Thanks, I updated the javadocs for the following methods:

    * moveFile()
    * moveFileToDirectory()
    * moveDirectory()
    * moveToDirectory()
    * moveDirectoryToDirectory()

http://svn.apache.org/viewvc?view=revision&revision=1080825

> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Closed] (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

Posted by "Gary D. Gregory (Closed) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/IO-264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary D. Gregory closed IO-264.
------------------------------


Closing, we released version 2.1.
                
> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

[jira] Commented: (IO-264) FileUtils.moveFile() JavaDoc should specify FileExistsException thrown

Posted by "Maciej Biłas (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/IO-264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13005941#comment-13005941 ] 

Maciej Biłas commented on IO-264:
---------------------------------

Thanks!

> FileUtils.moveFile() JavaDoc should specify FileExistsException thrown
> ----------------------------------------------------------------------
>
>                 Key: IO-264
>                 URL: https://issues.apache.org/jira/browse/IO-264
>             Project: Commons IO
>          Issue Type: Bug
>          Components: Utilities
>    Affects Versions: 2.0
>            Reporter: Maciej Biłas
>            Assignee: Niall Pemberton
>            Priority: Trivial
>             Fix For: 2.1
>
>
> FileUtils.moveFile() JavaDoc does specify the behaviour of the method in a case when the destFile exists. It would be helpful to know from the JavaDoc that in such case an exception is thrown as it's not immediately obvious.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira