commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Henri Yandell (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LANG-986) DurationFormatUtils.formatDuration accepts formats with year/month but cannot use them
Date Sun, 23 Mar 2014 17:04:44 GMT

     [ https://issues.apache.org/jira/browse/LANG-986?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Henri Yandell updated LANG-986:
-------------------------------

    Fix Version/s: Discussion

> DurationFormatUtils.formatDuration accepts formats with year/month but cannot use them
> --------------------------------------------------------------------------------------
>
>                 Key: LANG-986
>                 URL: https://issues.apache.org/jira/browse/LANG-986
>             Project: Commons Lang
>          Issue Type: Improvement
>            Reporter: Sebb
>             Fix For: Discussion
>
>
> The method DurationFormatUtils.formatDuration does not validate that the format is applicable.
The method does not calculate months and years, so these values will be 0 if the format contains
y or M.
> Perhaps the method should throw IAE if one of the unused format chars is used?



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message