You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@johnzon.apache.org by rm...@apache.org on 2016/04/03 19:56:22 UTC

incubator-johnzon git commit: JOHNZON-74 mention org.apache.johnzon.max-string-length in error message

Repository: incubator-johnzon
Updated Branches:
  refs/heads/master c755f1497 -> 001d10701


JOHNZON-74 mention org.apache.johnzon.max-string-length in error message


Project: http://git-wip-us.apache.org/repos/asf/incubator-johnzon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-johnzon/commit/001d1070
Tree: http://git-wip-us.apache.org/repos/asf/incubator-johnzon/tree/001d1070
Diff: http://git-wip-us.apache.org/repos/asf/incubator-johnzon/diff/001d1070

Branch: refs/heads/master
Commit: 001d10701039ddd3c5ed3855e4f58474b680668e
Parents: c755f14
Author: Romain manni-Bucau <rm...@gmail.com>
Authored: Sun Apr 3 19:56:04 2016 +0200
Committer: Romain manni-Bucau <rm...@gmail.com>
Committed: Sun Apr 3 19:56:04 2016 +0200

----------------------------------------------------------------------
 .../java/org/apache/johnzon/core/JsonStreamParserImpl.java     | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-johnzon/blob/001d1070/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
----------------------------------------------------------------------
diff --git a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
index 2f40a21..876ec78 100644
--- a/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
+++ b/johnzon-core/src/main/java/org/apache/johnzon/core/JsonStreamParserImpl.java
@@ -332,8 +332,8 @@ public class JsonStreamParserImpl implements JsonChars, JsonParser{
 
         if (c == COMMA_CHAR) {
             //last event must one of the following-> " ] } LITERAL
-            if (previousEvent == KEY_SEPARATOR_EVENT || previousEvent == START_ARRAY 
-                    || previousEvent == START_OBJECT || previousEvent == COMMA_EVENT 
+            if (previousEvent == KEY_SEPARATOR_EVENT || previousEvent == START_ARRAY
+                    || previousEvent == START_OBJECT || previousEvent == COMMA_EVENT
                     || previousEvent == KEY_NAME) {
                 throw uexc("Expected \" ] } LITERAL");
             }
@@ -975,7 +975,7 @@ public class JsonStreamParserImpl implements JsonChars, JsonParser{
     private JsonParsingException tmc() {
         final JsonLocation location = createLocation();
         return new JsonParsingException("Too many characters. Maximum string/number length of " + maxValueLength + " exceeded on "
-                + location, location);
+                + location + ". Maybe increase org.apache.johnzon.max-string-length in jsonp factory properties or system properties.", location);
     }
 
     private JsonParsingException uexio(final IOException e) {