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

Subtag syntax check is incomplete in Locale.LanguageRange

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • None
    • 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.

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

            Subtag syntax check is incomplete in Locale.LanguageRange

              • Icon: Bug Bug
              • Resolution: Fixed
              • Icon: P3 P3
              • 9
              • None
              • 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.

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

                          Created:
                          Updated:
                          Resolved:

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

                              Created:
                              Updated:
                              Resolved: