Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Avro >> mail # user >> Incorrect Json schema generated for @java_class

Copy link to this message
Re: Incorrect Json schema generated for @java_class
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:



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.