Skip to content
This repository was archived by the owner on Mar 8, 2020. It is now read-only.

native: Use a intermediate bytestream to handle stream closing#24

Merged
smola merged 1 commit into
bblfsh:masterfrom
abeaumont:fix/update-manifest
Jun 23, 2017
Merged

native: Use a intermediate bytestream to handle stream closing#24
smola merged 1 commit into
bblfsh:masterfrom
abeaumont:fix/update-manifest

Conversation

@abeaumont
Copy link
Copy Markdown
Contributor

This should fix both #19 and #23. As can be seen at https://github.com/FasterXML/jackson-databind/blob/master/src/main/java/com/fasterxml/jackson/databind/ObjectMapper.java#L3898, the output stream is being closed by the object mapper after the value is written, causing the problem.

Surprisingly, trying to write on a closed stream doesn't generate any exception, which made the problem harder to solve.

Note that I don't know any Java, so there may be a better way to solve this, please let me know if that's the case (cc: @bzz)

@abeaumont abeaumont requested review from juanjux and smola June 22, 2017 16:24
@smola smola merged commit b3b7a15 into bblfsh:master Jun 23, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants