Commons Lang
  1. Commons Lang
  2. LANG-152

[lang] DurationFormatUtils.formatDurationWords "11 <unit>s" gets converted to "11 <unit>"

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      None
    • Environment:

      Operating System: Windows XP
      Platform: Other

      Description

      The method DurationFormatUtils.formatDurationWords incorrectly outputs numbers
      ending in "1" without a plural "s" postfix for the time unit.

      Added a fix and tests that "1 <unit>s" gets converted to "1 <unit>" but that "11
      <unit>s" is left alone.

        Activity

        Hide
        ggregory@seagullsw.com added a comment -

        Target Milestone: 2.2.

        Show
        ggregory@seagullsw.com added a comment - Target Milestone: 2.2.
        Hide
        Henri Yandell added a comment -
            • COM-2382 has been marked as a duplicate of this bug. ***
        Show
        Henri Yandell added a comment - COM-2382 has been marked as a duplicate of this bug. ***

          People

          • Assignee:
            Unassigned
            Reporter:
            Gary Gregory
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development