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

RFE: MessageFormat is locale dependent; needs constructor w/ locale argument

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • core-libs
    • None
    • beta
    • generic
    • generic

      The documentation of MessageFormat says: "The factory methods aren't necessary because <code>MessageFormat</code> doesn't require any complex setup for a given locale. In fact, <code>MessageFormat</code> doesn't implement any locale specific behavior at all." These statements aren't true, as evidenced by the setLocale and getLocale methods. MessageFormat creates other Format objects, and thus needs to be aware of its locale. It would therefore be good to have a constructor that lets callers pass in a locale.

            nlindenbsunw Norbert Lindenberg (Inactive)
            nlindenbsunw Norbert Lindenberg (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: