You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Guillaume Nodet (JIRA)" <ji...@apache.org> on 2013/12/04 12:23:35 UTC

[jira] [Commented] (FELIX-4342) Substitution is dependent on the order of the map

    [ https://issues.apache.org/jira/browse/FELIX-4342?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13838819#comment-13838819 ] 

Guillaume Nodet commented on FELIX-4342:
----------------------------------------

The following test fails:

{code}
    public void testSubstitutionOrder()
    {
        LinkedHashMap<String, String> map1 = new LinkedHashMap<String, String>();
        map1.put("a", "$\\\\{var}");
        map1.put("ab", "${a}b");
        map1.put("abc", "${ab}c");
        InterpolationHelper.performSubstitution(map1);

        LinkedHashMap<String, String> map2 = new LinkedHashMap<String, String>();
        map2.put("a", "$\\\\{var}");
        map2.put("abc", "${ab}c");
        map2.put("ab", "${a}b");
        InterpolationHelper.performSubstitution(map2);

        assertEquals(map1, map2);
    }
{code}

> Substitution is dependent on the order of the map
> -------------------------------------------------
>
>                 Key: FELIX-4342
>                 URL: https://issues.apache.org/jira/browse/FELIX-4342
>             Project: Felix
>          Issue Type: Bug
>          Components: Utils
>            Reporter: Guillaume Nodet
>             Fix For: utils-1.4.2
>
>




--
This message was sent by Atlassian JIRA
(v6.1#6144)