JDK-8264544 : Case-insensitive comparison issue with supplementary characters.
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2021-03-31
  • Updated: 2022-08-05
  • Resolved: 2021-04-02
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 17
17 b17Fixed
Related Reports
Relates :  
Relates :  
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.)
---
Comments
Changeset: 6c145c47 Author: Naoto Sato <naoto@openjdk.org> Date: 2021-04-02 16:32:45 +0000 URL: https://git.openjdk.java.net/jdk/commit/6c145c47
02-04-2021