Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8248655 Support supplementary characters in String case insensitive operations
  3. JDK-8249160

Release Note: Support Supplementary Characters in String Case Insensitive Operations

    XMLWordPrintable

Details

    • generic
    • generic
    • Verified

    Description

      Case insensitive operations in `java.lang.String` class now correctly do case insensitive comparisons for supplementary characters (characters which have code point values over `U+FFFF`). For details, see the updates to the methods:
      ```
         - compareToIgnoreCase(String other)
         - equalsIgnoreCase(String other)
         - regionMatches(boolean ignoreCase, ...)
      ```
      For example,
      ```
      "\ud801\udc00".equalsIgnoreCase("\ud801\udc28")
      ```
      returns `true`, because '𐐀' ("\ud801\udc00") and '𐐨' ("\ud801\udc28") are equal to each other character in case insensitive comparison.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: