Seems the C++ parser doesn't know about "protocol" keyword, which is used
in the AvroIDL documentation.
using C++ parser, I get the following error:

> java -jar avro-tools-1.6.1.jar idl test.idl test.avro
> parser -i test.avro -o test.h
     Failed to parse or compile schema: Schema is invalid, due to bad node
of type symbolic

contents of test.avro (derived from test.idl)
{
  "protocol" : "A",
  "namespace" : null,
  "types" : [ {
    "type" : "record",
    "name" : "C",
    "fields" : [ {
      "name" : "x",
      "type" : "int"
    } ]
  } ],
  "messages" : {
  }
}

contents of test.idl
protocol A
{
   record C
   {
      int x;
   }
}



---
kevin meinert | http://www.subatomiclabs.com

Reply via email to