Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
framework-1.8.1
-
None
Description
Our utility StringMap class allows you to do case sensitive or insensitive string key lookups. It also allows you to change whether or not the lookup is case sensitive or not on the fly. Unfortunately, it does so incorrectly. It simply changes the comparator used by the TreeMap behind its back, which means existing keys will be sorted by the old comparator algorithm and new ones will be sorted by the new algorithm. We really need to reconstruct the tree using the new comparator if it changes.