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

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      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

            • Assignee:
              naoto Naoto Sato
              Reporter:
              naoto Naoto Sato
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: