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

i18n problems with class java.text.SimpleDateFormat with some locales

XMLWordPrintable

    • generic
    • solaris_9

      [jlodge 01/07/1997]

      o Discovered some possible i18n problems with class java.text.SimpleDateFormat
        when used in the 'es' locale. Discovered using the sample program
        WorldClock.java, attainable from
        /net/gpe/export/home1/WWW/www-i18n-web/i18n-samples/nabe

      Exception occurred during event handling:
      java.lang.IllegalArgumentException: Illegal pattern character - ''
              at java.text.SimpleDateFormat.subFormat(SimpleDateFormat.java)
              at java.text.SimpleDateFormat.format(SimpleDateFormat.java)
              at java.text.DateFormat.format(DateFormat.java)
              at WorldClock.paint(WorldClock.java:67)
              at WorldClock.update(WorldClock.java:57)
              at java.awt.Component.dispatchEvent(Component.java)
              at java.awt.EventDispatchThread.run(EventDispatchThread.java)
              
            ...error repeats constantly as thread updates time.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: