[
https://issues.apache.org/jira/browse/FELIX-5675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Guillaume Nodet updated FELIX-5675:
-----------------------------------
Fix Version/s: utils-1.10.2
> JSONParser needs a little bit more context when reporting an error
> ------------------------------------------------------------------
>
> Key: FELIX-5675
> URL: https://issues.apache.org/jira/browse/FELIX-5675
> Project: Felix
> Issue Type: Bug
> Components: Utils
> Reporter: David Leangen
> Assignee: David Leangen
> Fix For: utils-1.10.2
>
>
> Occasionally a Key/Value Pair evaluates to an empty string. In that case, the
> error message is something like:
> {code}
> Caused by: java.lang.IllegalArgumentException: Malformatted JSON key-value
> pair:
> at
> org.apache.felix.serializer.impl.json.JSONParser.parseKeyValue(JSONParser.java:106)
> at
> org.apache.felix.serializer.impl.json.JSONParser.parseObject(JSONParser.java:203)
> ... 56 more
> {code}
> This makes it very challenging to find where the error is in the file.
> In order to add more context, the previously-parsed Key/Value pair should
> also be output.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)