[
https://issues.apache.org/jira/browse/AVRO-738?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12997636#comment-12997636
]
Scott Carey commented on AVRO-738:
----------------------------------
After AVRO-753, this will be closed since there won't be an init() method and
the replacement via EncoderFactory.binaryEncoder() will not have this problem.
> BinaryEncoder's init() function does not reset the OutputStream of the
> embedded SimpleByteWriter
> ------------------------------------------------------------------------------------------------
>
> Key: AVRO-738
> URL: https://issues.apache.org/jira/browse/AVRO-738
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.4.1
> Reporter: Devajyoti Sarkar
> Priority: Critical
> Fix For: 1.5.1
>
>
> This is a problem if one is trying to reuse the BinaryEncoder by passing a
> new OutputStream with the init() method. While the encoder will write all the
> fields to the new OutputStream, fields that are of type "bytes" do not get
> written. This effectively means that one needs to create a new BinaryEncoder
> each time if one is serializing record with a "bytes" field in it.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira