RFR [9] 8151384: Examine sun.misc.ASCIICaseInsensitiveComparator

Xueming Shen xueming.shen at oracle.com
Wed Mar 9 17:14:33 UTC 2016


On 3/9/16 7:58 AM, Peter Levart wrote:
>
> P.S.
>
> Do you happen to know why String.compareToIgnoreCase / 
> CASE_INSENSITIVE_ORDER is defined to compare characters transformed 
> through the following function:
>
> Character.toLowerCase(Character.toUpperCase(character))
>
> ...and not simply:
>
> Character.toLowerCase(character) or Character.toUpperCase(character)
>
>

To deal with "turkish i/I/I+dot" issue.

-sherman


>>
>> -Chris.
>>
>




More information about the core-libs-dev mailing list