forked from eclipse-openj9/openj9
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix caseConversionHelper to check for 0xB5, 0xDF, and 0xFF corner cases
In eclipse-openj9#4597 we identified cases on which `toUpperCase` fails on Linux on Z. This is due to some faulty login in the evaluator for these intrinsics on Z. Bugs seem to have been introduced in eclipse-openj9#2318 for certain characters. Namely the test in eclipse-openj9#4597 fails to convert the `\u00FF` character. The bug is obvious, since `toUpperCase` of such a character cannot be handled and the JIT evaluator determines the invalid character range by checking if the character is greater than 0xFF, but it should be checking if greater than or equal to. In addition the compressed String evaluator also fails on 0xB5 as determined by the unit tests. Both issues are fixed. Fixes: eclipse-openj9#4597 Signed-off-by: Filip Jeremic <fjeremic@ca.ibm.com>
- Loading branch information
Showing
1 changed file
with
18 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters