Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4098741

setMaximumFractionDigits can lead to ArrayIndexOutOfBoundsException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.2beta3
    • CPU:
      x86
    • OS:
      windows_nt
    • Verification:
      Not verified

      Description



      Name: diC59631 Date: 12/11/97


      The following code:

        NumberFormat fmt = NumberFormat.getPercentInstance();
        fmt.setMaximumFractionDigits(20);
        System.err.println(fmt.format(.001));

      yields an ArrayIndexOutOfBoundsException from
      within DecimalFormat.format()
      (Review ID: 21714)
      ======================================================================

        Attachments

          Activity

            People

            Assignee:
            duke J. Duke (Inactive)
            Reporter:
            dindrigo Daniel Indrigo (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: