Ensure Jackson generator flushed
Closes gh-22771
This commit is contained in:
@@ -172,6 +172,7 @@ public abstract class AbstractJackson2Encoder extends Jackson2CodecSupport imple
|
||||
try {
|
||||
JsonGenerator generator = getObjectMapper().getFactory().createGenerator(outputStream, encoding);
|
||||
writer.writeValue(generator, value);
|
||||
generator.flush();
|
||||
release = false;
|
||||
}
|
||||
catch (InvalidDefinitionException ex) {
|
||||
|
||||
Reference in New Issue
Block a user