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

Case-insensitive comparison issue with supplementary characters.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 17
    • None
    • core-libs
    • None
    • b17
    • generic
    • generic

      There are issues on negating the supplementary code points in StringUTF16.compareToCIImpl method as discussed in the core-libs ml.

      ---
      On July 23, 2020 the first fix for the bug was committed. However, it
      includes two simple bugs of its own. They're not much more than typos,
      but they break some things nonetheless, as demonstrated by the unit
      tests comprising part 2 of this contribution.

      (Those two bugs: In "StringUTF16.compareToCIImpl", change statements
      "cp1 -= cp1;" and "cp2 -= cp2;" to, respectively, "cp1 = -cp1;" and
      "cp2 = -cp2;", and those bugs are history.)
      ---

            naoto Naoto Sato
            naoto Naoto Sato
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: