Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 487A6740 for ; Thu, 5 May 2011 01:27:45 +0000 (UTC) Received: (qmail 23567 invoked by uid 500); 5 May 2011 01:27:45 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 23453 invoked by uid 500); 5 May 2011 01:27: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 23444 invoked by uid 99); 5 May 2011 01:27:44 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 01:27:44 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 05 May 2011 01:27:42 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 75F82C080A for ; Thu, 5 May 2011 01:27:03 +0000 (UTC) Date: Thu, 5 May 2011 01:27:03 +0000 (UTC) From: "Luke Quinane (JIRA)" To: issues@commons.apache.org Message-ID: <1223163905.23416.1304558823479.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Created] (IO-270) "IllegalArgumentException: Negative time" copying to Windows share MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org "IllegalArgumentException: Negative time" copying to Windows share ------------------------------------------------------------------ Key: IO-270 URL: https://issues.apache.org/jira/browse/IO-270 Project: Commons IO Issue Type: Bug Components: Utilities Affects Versions: 2.0.1 Environment: Windows 7, Java 64 bit server v1.6.0_22-b04 Reporter: Luke Quinane A customer reported the following exception to us: {noformat}java.lang.IllegalArgumentException: Negative time at java.io.File.setLastModified(File.java:1258) at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:686) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:653) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607) at {noformat} Part of the problem is the exception itself but also our code was expecting FileUtils to throw IOException instead of ISE. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira