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

Locale.getISOCountries does not specify the returned set is unmodifiable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 25
    • 25
    • core-libs
    • b26
    • generic
    • generic

      Locale.getISOCountries(Locale.IsoCountryCode type) can return up to three different sets (depending on the input enum type). All of these sets are unmodifiable, and this behavior should be documented in the specification.

      See comment below for behavior that confirms the sets are unmodifiable.

            jlu Justin Lu
            jlu Justin Lu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: