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

Subtag syntax check is incomplete in Locale.LanguageRange

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3
    • 9
    • None
    • core-libs
    • b13
    • generic
    • generic

    Backports

      Description

        2905 for (int i = 1; i < subtags.length; i++) {
        2906 if (isSubtagIllFormed(subtags[i], false)) {
        2907 isIllFormed = true;
        2908 }
        2909 break;
        2910 }

        Since the loop increment i++; is unreachable, the loop body will never execute more than once.

        Attachments

          Issue Links

            Activity

              People

                peytoia Yuka Kamiya (Inactive)
                naoto Naoto Sato
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: