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 00E299FF7 for ; Mon, 16 Apr 2012 14:50:40 +0000 (UTC) Received: (qmail 85388 invoked by uid 500); 16 Apr 2012 14:50:40 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 85315 invoked by uid 500); 16 Apr 2012 14:50:40 -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 85306 invoked by uid 99); 16 Apr 2012 14:50:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Apr 2012 14:50:40 +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; Mon, 16 Apr 2012 14:50:39 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 4C64B353D6A for ; Mon, 16 Apr 2012 14:50:19 +0000 (UTC) Date: Mon, 16 Apr 2012 14:50:19 +0000 (UTC) From: "Sebb (Commented) (JIRA)" To: issues@commons.apache.org Message-ID: <843361874.28705.1334587819373.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <415595549.28388.1334581819884.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (IO-323) What should happen in FileUtils.sizeOf[Directory] when an overflow takes place? 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 [ https://issues.apache.org/jira/browse/IO-323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13254733#comment-13254733 ] Sebb commented on IO-323: ------------------------- What are the options? I can think of the following: # throw a runtime exception # ignore the problem # return a "special" value, e.g. -1 The same problem may apply elsewhere in IO. > What should happen in FileUtils.sizeOf[Directory] when an overflow takes place? > ------------------------------------------------------------------------------- > > Key: IO-323 > URL: https://issues.apache.org/jira/browse/IO-323 > Project: Commons IO > Issue Type: Bug > Components: Utilities > Affects Versions: 2.3 > Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 03:44:56-0500) > Maven home: C:\Java\apache-maven-3.0.4\bin\.. > Java version: 1.6.0_31, vendor: Sun Microsystems Inc. > Java home: C:\Program Files\Java\jdk1.6.0_31\jre > Default locale: en_US, platform encoding: Cp1252 > OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows" > Reporter: Gary D. Gregory > > FileUtils.sizeOf[Directory] adds longs. What should happen when an overflow happens? -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira