Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.3
-
None
Description
5.3 introduced map support into the property expression language in the form:
{'foo': 'bar'}.
Expansion parsing chokes on the syntax, however. It uses a reluctant regular expression to find the closing brace:
private static final Pattern EXPANSION_PATTERN = Pattern.compile("\\$
");
Which means that the use of a map inside an expansion prematurely terminates the exansion:
${echoMap(
{"foo": "bar"})}
The regex finds the first } and the expression evaluates as:
echoMap({"foo": "bar"
Which is clearly incorrect.
Attachments
Issue Links
- relates to
-
TAP5-1620 Tml parsing expression error
- Closed