Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Cannot Reproduce
-
1.3
-
None
-
None
-
None
-
Operating System: other
Platform: Other
-
35442
Description
If a Map handed to MapConfiguration which contains entries with escaped
delimiters in the value, i.e. "\,", it is not decoded.
-code-sample-
Map m = new HashMap();
m.put("foo", "bar
, baz");
m.put("bar", "bar, baz");
Configuration c = new MapConfiguration(m);
String bad = c.getString("foo"); <-- returns "bar
, baz" expected "bar, baz"
String ok = c.getString("bar"); // <-- returns "bar"
-code-sample-
It seems that MapConfiguration should employ a similar strategy like
PropertiesConfiguration - calling undecodeJava on the return value...