[
https://issues.jboss.org/browse/JGRP-2378?page=com.atlassian.jira.plugin....
]
Bela Ban commented on JGRP-2378:
--------------------------------
[~dlovison]
Util.substituteVariable() is used instead. Unless this runs into the same issue, I'd
like to remove Util.replaceProperties(). Any objections?
Util replaceProperties fails when the input start with $
--------------------------------------------------------
Key: JGRP-2378
URL:
https://issues.jboss.org/browse/JGRP-2378
Project: JGroups
Issue Type: Enhancement
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)