Oops, you're right. Dashes are not currently allowed in IDL property names. I think it would be better to permit dashes there than to automatically convert underscores to dashes or to change the name of the property that's used by ReflectDatumReader.
I filed a Jira issue for this: https://issues.apache.org/jira/browse/AVRO-1267 Doug On Thu, Feb 28, 2013 at 12:10 PM, avronewbie <[email protected]> wrote: > Thanks Doug for the reply. > > I tried with the annotation @java-class but the compiler throws this > exception: > > org.apache.avro.compiler.idl.ParseException: Encountered " <STUFF_TO_IGNORE> > "- "" > > > > -- > View this message in context: > http://apache-avro.679487.n3.nabble.com/Incorrect-Json-schema-generated-for-java-class-tp4026430p4026449.html > Sent from the Avro - Users mailing list archive at Nabble.com.
