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

Case-insensitive comparison issue with supplementary characters.

    XMLWordPrintable

Details

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

    Description

      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.)
      ---

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: