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

(lc) Improve Locale.getISO* methods and their tables

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 5.0
    • core-libs
    • None
    • b36
    • generic
    • generic

      Those methods use comma-separated string tables for the 2-to-3 mapping. All commas can be eliminated from the tables and the methods can be simplified.

      Also the tables should be separated from Locale.java so that they are not loaded until they are really needed.

      Static fields isoLanguages and isoCountries should be volatile.

            okutsu Masayoshi Okutsu
            okutsu Masayoshi Okutsu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: