Subtag syntax check is incomplete in Locale.LanguageRange

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P3
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • b13
    • generic
    • generic

        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.

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

                Created:
                Updated:
                Resolved: