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

Subtag syntax check is incomplete in Locale.LanguageRange

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b13
    • CPU:
      generic
    • OS:
      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

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

                  Dates

                  • Created:
                    Updated:
                    Resolved: