FoundationDB / fdb-record-layer

A record-oriented store built on FoundationDB
Apache License 2.0
570 stars 102 forks source link

TextCollatorRegistryICU.getTextCollator should freeze the Collator #2798

Closed MMcM closed 1 week ago

MMcM commented 2 weeks ago

It is not thread-safe otherwise.

Note that I believe that TextCollatorRegistryJRE is okay: Collator.getInstance returns a clone and both compare and getCollationKey are synchronized.