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

[classlib][text] DecimalFormat applyPattern error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 6.0M1
    • 6.0M3, 5.0M15
    • Classlib
    • None
    • 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. java5.patch
          2 kB
          Pons Rudy
        2. java6.patch
          6 kB
          Pons Rudy

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: