Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-373

EOF detection broken in JsonDecoder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.3.0
    • java
    • None

    Description

      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"}

      ]}' -

      Attachments

        1. AVRO-373.patch
          0.5 kB
          Thiruvalluvan M. G.

        Activity

          People

            thiru_mg Thiruvalluvan M. G.
            cutting Doug Cutting
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: