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 4C89310AFA for ; Mon, 3 Mar 2014 03:17:27 +0000 (UTC) Received: (qmail 52473 invoked by uid 500); 3 Mar 2014 03:17:24 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 52128 invoked by uid 500); 3 Mar 2014 03:17:23 -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 52119 invoked by uid 99); 3 Mar 2014 03:17:20 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 03 Mar 2014 03:17:20 +0000 Date: Mon, 3 Mar 2014 03:17:20 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (LANG-984) DurationFormatUtils does not handle large durations correctly if the days field is missing MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 Sebb created LANG-984: ------------------------- Summary: DurationFormatUtils does not handle large durations correctly if the days field is missing Key: LANG-984 URL: https://issues.apache.org/jira/browse/LANG-984 Project: Commons Lang Issue Type: Bug Reporter: Sebb DurationFormatUtils assumes that the the number of days, hours, minutes, seconds and milliseconds can be expressed as an int when converted from a long duration in milliseconds. However even the number of days can exceed an int if the duration is large enough. It's unlikely that such large durations will often be used, but this restriction is not documented. It should be easy enough to use long fields instead of int. -- This message was sent by Atlassian JIRA (v6.2#6252)