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

[Doc] Locale.LanguageRange() throws an undocumented IAE when range is ill-formed.

XMLWordPrintable

    • 8
    • b123
    • generic
    • generic

      API doc says that Locale.LanguageRange(String range, double weight) throws IAE if the given weight is less than MIN_WEIGHT or greater than MAX_WEIGHT.
      Because IAE is thrown when the given range is ill-formed. It should be mentioned in the API doc about LanguageRange(String, double) and LanguageRange(String).

            nishjain Nishit Jain
            peytoia Yuka Kamiya (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: