Commit 2aaa195f authored by 高铁's avatar 高铁
Browse files

scanLongValue add error handler

Showing with 4 additions and 8 deletions
+4 -8
......@@ -1670,9 +1670,10 @@ public final class JSONLexer {
// next();
{
int index = ++this.bp;
this.ch = (index >= this.len ? //
EOI //
: text.charAt(index));
if (index >= this.len) {
throw new JSONException("syntax error, " + info());
}
this.ch = text.charAt(index);
}
} else {
negative = false;
......@@ -1711,11 +1712,6 @@ public final class JSONLexer {
longValue = -longValue;
}
if (ch == 'L') {
np++;
next();
}
return longValue;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment