felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard S. Hall (JIRA)" <j...@apache.org>
Subject [jira] Closed: (FELIX-1293) StringMap used for case insensitive properties does not respect ordering if case sensitivity is changed
Date Wed, 01 Jul 2009 19:57:47 GMT

     [ https://issues.apache.org/jira/browse/FELIX-1293?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Richard S. Hall closed FELIX-1293.
----------------------------------

    Resolution: Fixed

I committed a fix for this.

> StringMap used for case insensitive properties does not respect ordering if case sensitivity
is changed
> -------------------------------------------------------------------------------------------------------
>
>                 Key: FELIX-1293
>                 URL: https://issues.apache.org/jira/browse/FELIX-1293
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.8.1
>            Reporter: Richard S. Hall
>            Assignee: Richard S. Hall
>            Priority: Minor
>             Fix For: felix-2.0.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message