Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1293

StringMap used for case insensitive properties does not respect ordering if case sensitivity is changed

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • framework-1.8.1
    • framework-2.0.0
    • Framework
    • 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.

      Attachments

        Activity

          People

            rickhall Richard S. Hall
            rickhall Richard S. Hall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: