You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sebb (JIRA)" <ji...@apache.org> on 2014/03/03 04:17:20 UTC
[jira] [Created] (LANG-984) DurationFormatUtils does not handle
large durations correctly if the days field is missing
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)