Alan Woodward created LUCENE-8657:
-------------------------------------
Summary: CharsRef.compareTo() should always be in UTF-8 order
Key: LUCENE-8657
URL: https://issues.apache.org/jira/browse/LUCENE-8657
Project: Lucene - Core
Issue Type: Improvement
Reporter: Alan Woodward
Assignee: Alan Woodward
Attachments: LUCENE-8657.patch
CharsRef.compareTo() currently directly compares byte values. However,
everywhere that CharsRef objects are compared in the codebase instead uses the
deprecated UTF16SortedAsUTF8Comparator static comparator. We should just
reimplement compareTo() to use UTF-8 comparisons instead, and remove the
deprecated methods.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]