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

Throwable.getLocalizedMessage() does not support multiple locales within one jav

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • core-libs
    • generic
    • generic



      Name: rm29839 Date: 04/02/98


      The Throwable class provides a method getLocalizedMessage() that should return a localized version of the message.
      Unfortunately, this method does not allow me to specify the locale so the throwable object has to assume that I'm using the
      default locale. This is not a valid assumption for any international application.

      The solution? Add another method to Throwable:

         Throwable.getLocalizedMessage( Locale l );
      (Review ID: 27024)
      ======================================================================

            smarks Stuart Marks
            rmandelsunw Ronan Mandel (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: