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

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

XMLWordPrintable

    • 1.1fcs
    • generic
    • solaris_9
    • Not verified

      [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)

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: