[ 
https://issues.apache.org/jira/browse/AVRO-1444?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ramana Suvarapu updated AVRO-1444:
----------------------------------

    Attachment: JsonEncodingTest.cpp

> Unable to reuse JSonDecoder and JSONDecoder crashes
> ---------------------------------------------------
>
>                 Key: AVRO-1444
>                 URL: https://issues.apache.org/jira/browse/AVRO-1444
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: Ramana Suvarapu
>             Fix For: 1.7.6
>
>         Attachments: JsonEncodingTest.cpp
>
>
> I am trying to re-use the JSONDecoder to decode the JSONText file which 
> contains JSONEncoded Objects. After first item is processed successfully, on 
> the second item, when I tried to re-use the decoder, decoder crashes.
> The reason is when jsonDecoder is initialized with new stream, internal stack 
> of jsonDecoder is getting reset and StreamReader of jsonDecoder is also not 
> getting reset.
> Attached is the program to re-produce this issue and also I attach patch to 
> fix this issue. But patch works but needs to be reviewed 



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to