commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sebb (JIRA)" <>
Subject [jira] [Commented] (IO-157) [FileUtils] Return target File from copyFileToDirectory()
Date Fri, 08 Apr 2011 16:36:05 GMT


Sebb commented on IO-157:

Binary compatibility relies on the API signature, which includes the return type, but does
not include the throws clause.

So you can have a binary compatible jar which is not source-compatible, and vice-versa.

> [FileUtils] Return target File from copyFileToDirectory()
> ---------------------------------------------------------
>                 Key: IO-157
>                 URL:
>             Project: Commons IO
>          Issue Type: Improvement
>          Components: Utilities
>    Affects Versions: 1.4
>            Reporter: Kenny MacLeod
>            Priority: Minor
>             Fix For: 3.x
> It would be useful if the FileUtils.copyFileToDirectory() method returned the target
file to which it does the copy.  Currently, it creates the target File object, passes it to
copyFile(), and discards the reference.  This could just be returned from the method instead.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message