Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 51506 invoked from network); 10 Jan 2008 14:43:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Jan 2008 14:43:56 -0000 Received: (qmail 32851 invoked by uid 500); 10 Jan 2008 14:43:44 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 32786 invoked by uid 500); 10 Jan 2008 14:43:44 -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 32777 invoked by uid 99); 10 Jan 2008 14:43:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 06:43:44 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2008 14:43:28 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1CEB3714233 for ; Thu, 10 Jan 2008 06:43:34 -0800 (PST) Message-ID: <16633272.1199976214114.JavaMail.jira@brutus> Date: Thu, 10 Jan 2008 06:43:34 -0800 (PST) From: "nicolas de loof (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (IO-155) use NIO for copyFile when running on java 1.4 In-Reply-To: <20402289.1199974474409.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/IO-155?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12557661#action_12557661 ] nicolas de loof commented on IO-155: ------------------------------------ as this static block is only dedicated to detect java runtime, catching Exception (or maybe Throwable) prevents any possible initialization error. But catching ClassNotFoundException would be also valid > use NIO for copyFile when running on java 1.4 > --------------------------------------------- > > Key: IO-155 > URL: https://issues.apache.org/jira/browse/IO-155 > Project: Commons IO > Issue Type: Improvement > Components: Utilities > Affects Versions: 1.4 > Reporter: nicolas de loof > Priority: Trivial > Fix For: 1.4 > > Attachments: IO-155.patch > > > CopyFile can rely on java.nio when runtime is java 1.4 + -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.