You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hasNext() method in JsonParser provided by the Reference Implementation does not behave consistently for unterminated JSON.
Please see the following results.
hasNext()
method inJsonParser
provided by the Reference Implementation does not behave consistently for unterminated JSON.Please see the following results.
hasNext(); // throws JsonParsingException
next();
hasNext(); // throws JsonParsingException
next();
hasNext(); // returns true 😕
next();
next();
hasNext(); // throws JsonParsingException
next();
next();
hasNext(); // returns true 😕
hasNext(); // throws JsonParsingException
next();
hasNext(); // throws JsonParsingException
next();
hasNext(); // returns true 😕
I believe for No.1, 4, 6, and 9 case,
hasNext()
should throwJsonParsingException
instead of returningtrue
.Are these correct and intended bahavior?
The text was updated successfully, but these errors were encountered: