Return-Path: Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: (qmail 62393 invoked from network); 7 Mar 2010 11:16:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 7 Mar 2010 11:16:10 -0000 Received: (qmail 95487 invoked by uid 500); 7 Mar 2010 11:15:49 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 95384 invoked by uid 500); 7 Mar 2010 11:15:49 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 95376 invoked by uid 99); 7 Mar 2010 11:15:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Mar 2010 11:15:49 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 07 Mar 2010 11:15:48 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4A657234C4AC for ; Sun, 7 Mar 2010 11:15:27 +0000 (UTC) Message-ID: <428855700.124101267960527303.JavaMail.jira@brutus.apache.org> Date: Sun, 7 Mar 2010 11:15:27 +0000 (UTC) From: "Niall Pemberton (JIRA)" To: issues@commons.apache.org Subject: [jira] Issue Comment Edited: (IO-157) [FileUtils] Return target File from copyFileToDirectory() In-Reply-To: <775604790.1204628920628.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/IO-157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12842404#action_12842404 ] Niall Pemberton edited comment on IO-157 at 3/7/10 11:13 AM: ------------------------------------------------------------- I also don't see how changing a return type from "void" to return something is going to ever break compatibility for someone. However nothing has changed since Stephens comment - we were already on Java 1.5 then and I don't see how upgrading to Java 1.5 means binary incompatibility is no longer a problem? was (Author: niallp): I also don't see how changing a return type from "void" to return something is going to ever break compatibility for someone. However nothing has changed since Stephens comment - we were already on Java 1.5 then and I don't see how upgrading to Java 1.5 makes any difference to this. > [FileUtils] Return target File from copyFileToDirectory() > --------------------------------------------------------- > > Key: IO-157 > URL: https://issues.apache.org/jira/browse/IO-157 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 1.4 > Reporter: Kenny MacLeod > Assignee: Niall Pemberton > Priority: Minor > Fix For: 2.0 > > > 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. - You can reply to this email to add a comment to the issue online.