[jboss-jira] [JBoss JIRA] (JGRP-2378) Util replaceProperties fails when the input start with $

Diego Lovison (Jira) issues at jboss.org
Fri Sep 6 13:48:00 EDT 2019


    [ https://issues.jboss.org/browse/JGRP-2378?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13780587#comment-13780587 ] 

Diego Lovison commented on JGRP-2378:
-------------------------------------

[~belaban] Same issue. I can fix and remove replaceProperties. Sounds good to you ?

> Util replaceProperties fails when the input start with $
> --------------------------------------------------------
>
>                 Key: JGRP-2378
>                 URL: https://issues.jboss.org/browse/JGRP-2378
>             Project: JGroups
>          Issue Type: Bug
>    Affects Versions: 4.1.4
>            Reporter: Diego Lovison
>            Assignee: Diego Lovison
>            Priority: Minor
>             Fix For: 4.1.5
>
>
> The following test was failing
> {code:java}
>     public void testBeginWithDollar() {
>         Properties p = new Properties();
>         p.put("hello.world", "Hello World");
>         String input="${hello.world:foo}";
>         String out=Util.replaceProperties(input, p);
>         assert out.equals("Hello World");
>     }
> {code}



--
This message was sent by Atlassian Jira
(v7.13.5#713005)


More information about the jboss-jira mailing list