ICU-5854 cloned collator not thread safe - fix

X-SVN-Rev: 22420
This commit is contained in:
Doug Felt 2007-08-18 00:50:04 +00:00
parent f14c7caeb4
commit 065cbd88e5

View file

@ -233,7 +233,9 @@ public final class RuleBasedCollator extends Collator
RuleBasedCollator result = (RuleBasedCollator)super.clone();
if (latinOneCEs_ != null) {
result.m_reallocLatinOneCEs_ = true;
result.m_ContInfo_ = new ContractionInfo();
}
// since all collation data in the RuleBasedCollator do not change
// we can safely assign the result.fields to this collator
result.initUtility(false); // let the new clone have their own util