When ProtobufParser reaches end of input at top level, it will both:
- Report
JsonToken.END_OBJECT to close root level implicit Object value
- Call
JsonParser.close() to close input
While this works in many ways (current token properly set; further JsonParser.nextToken() calls will return null), it will not work wrt FasterXML/jackson-core#1438 .
Ideally we would probably add one more state (STATE_ROOT_END?) to cover this case.
When
ProtobufParserreaches end of input at top level, it will both:JsonToken.END_OBJECTto close root level implicit Object valueJsonParser.close()to close inputWhile this works in many ways (current token properly set; further
JsonParser.nextToken()calls will returnnull), it will not work wrt FasterXML/jackson-core#1438 .Ideally we would probably add one more state (STATE_ROOT_END?) to cover this case.