Uploaded image for project: 'Harmony'
  1. Harmony
  2. HARMONY-6485

[classlib][text] DecimalFormat applyPattern error

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0M1
    • Fix Version/s: 6.0M3, 5.0M15
    • Component/s: Classlib
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      DecimalFormat's methods applyPattern and applyLocalizedPattern don't update max/min integer/fraction digits :
      DecimalFormat df = new DecimalFormat();
      df.applyPattern("#00.0#");
      System.out.print(df.getMinimumIntegerDigits() + " " + df.getMinimumFractionDigits() + " " + df.getMaximumFractionDigits());
      will print 1 0 3 instead of 2 1 2.

        Attachments

        1. java6.patch
          6 kB
          Pons Rudy
        2. java5.patch
          2 kB
          Pons Rudy

          Issue Links

            Activity

              People

              • Assignee:
                hindessm Mark Hindess
                Reporter:
                ilod Pons Rudy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: