Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 89184 invoked from network); 12 Oct 2006 08:31:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 12 Oct 2006 08:31:22 -0000 Received: (qmail 83469 invoked by uid 500); 12 Oct 2006 08:31:19 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 83368 invoked by uid 500); 12 Oct 2006 08:31:19 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 83357 invoked by uid 99); 12 Oct 2006 08:31:19 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 01:31:19 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Oct 2006 01:31:18 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id DC38F7142DF for ; Thu, 12 Oct 2006 01:30:36 -0700 (PDT) Message-ID: <18453383.1160641836899.JavaMail.jira@brutus> Date: Thu, 12 Oct 2006 01:30:36 -0700 (PDT) From: "Niall Pemberton (JIRA)" To: commons-dev@jakarta.apache.org Subject: [jira] Commented: (IO-84) Many classes are limited to length of stream < 2 GB, and behave incorrectly on larger streams In-Reply-To: <14725014.1152869550138.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/IO-84?page=comments#action_12441663 ] Niall Pemberton commented on IO-84: ----------------------------------- Committed those changes to IOUtils to add copyLarge() methods and throw and ArithmeticException in the original copy() methods. I have modifications to the IOUtils unit tests (IOUtilsCopyTestCase) to test the changes, but they use the MockInputStream and MockReader implementations from IO-94 - so I'll hold off committing those until the decison on what to do with those implementations is made. > Many classes are limited to length of stream < 2 GB, and behave incorrectly on larger streams > --------------------------------------------------------------------------------------------- > > Key: IO-84 > URL: http://issues.apache.org/jira/browse/IO-84 > Project: Commons IO > Issue Type: Bug > Components: Utilities > Affects Versions: 1.2 > Environment: All > Reporter: Evgenii Philippov > Fix For: 1.3 > > Attachments: io-84-files-larger-than-2gb.patch > > > java int.MAX_VALUE is 2 GB. Classes that handle streams larger than 2 GB will behave incorrectly. > For example, see > http://svn.apache.org/viewvc/jakarta/commons/proper/io/trunk/src/java/org/apache/commons/io/IOUtils.java?view=markup > Method: int copy(InputStream input, OutputStream output). > The correct method would be: long copy(InputStream input, OutputStream output). > This issue may affect many classes and routines. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org