You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2015/01/27 16:58:34 UTC

[jira] [Created] (TAP5-2443) JSON parser cannot handle RegExp values

Jochen Kemnade created TAP5-2443:
------------------------------------

             Summary: JSON parser cannot handle RegExp values
                 Key: TAP5-2443
                 URL: https://issues.apache.org/jira/browse/TAP5-2443
             Project: Tapestry 5
          Issue Type: Bug
          Components: tapestry-json
    Affects Versions: 5.4
            Reporter: Jochen Kemnade
            Priority: Minor


If a JSON string contains a RegExp value, the parser fails and reports that the value is missing.
{code}
java.lang.RuntimeException: Missing value at character 8 of {regex: /foo/}
	at org.apache.tapestry5.json.JSONTokener.syntaxError(JSONTokener.java:384)
	at org.apache.tapestry5.json.JSONTokener.nextValue(JSONTokener.java:301)
	at org.apache.tapestry5.json.JSONObject.<init>(JSONObject.java:260)
	at org.apache.tapestry5.json.JSONObject.<init>(JSONObject.java:295)
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)