[
https://issues.apache.org/jira/browse/AVRO-373?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Thiruvalluvan M. G. updated AVRO-373:
-------------------------------------
Attachment: AVRO-373.patch
The patch fixes the problem. This may have performance implications. But I
don't think we worry too much about performance with JsonDecoder.
> EOF detection broken in JsonDecoder
> -----------------------------------
>
> Key: AVRO-373
> URL: https://issues.apache.org/jira/browse/AVRO-373
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Doug Cutting
> Attachments: AVRO-373.patch
>
>
> We'd like it when EOF is encountered between objects to throw EOFException,
> while EOF encountered within an object to throw AvroTypeException. I think
> this was working, but it's not working at present. The following command
> fails:
> echo '{"greeting":"Hello World!"}' | java -jar build/avro-tools-1.2.0-dev.jar
> fromjson '{"type":"record","name":"hello","fields":[{"name": "greeting",
> "type": "string"}]}' -
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.