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

Some i18n probelems with some classes for some locales. JDK 1.1 Beta

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      1.1fcs
    • CPU:
      generic
    • OS:
      solaris_9
    • Verification:
      Not verified

      Description

      [jlodge 01/07/97]

      Possible problem occurring for DecimalFormat class when dealing with some
      locales. The below error occurred when testing the sample program Monetary.java
      available at /net/gpe/export/home1/WWW/www-i18n-web/i18n-samples/nabe

      Exception occurred during event handling:
      java.lang.StringIndexOutOfBoundsException: String index out of range: 9
              at java.text.DecimalFormat.setPattern(DecimalFormat.java)
              at java.text.DecimalFormat.<init>(DecimalFormat.java)
              at java.text.NumberFormat.getDefault(NumberFormat.java)
              at java.text.NumberFormat.getDefaultCurrency(NumberFormat.java)
              at LocaleFormatter.getString(LocaleFormatter.java:21)
              at MyCanvas.paint(Monetary.java:19)
              at java.awt.Component.update(Component.java)
              at java.awt.Component.dispatchEvent(Component.java)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java)

        Attachments

          Activity

            People

            Assignee:
            bcbeck Brian Beck (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: