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

Switch to Plain View
Avro >> mail # user >> Cannot compile generated classes in Java

Copy link to this message
Cannot compile generated classes in Java

I followed the instructions at [1] but am unable to compile the schemas I
The problem is casting from Object to another type and it looks like it's
the same as here [2].

For example:
        this.device = data().deepCopy(fields()[1].schema(), other.device);
The RHS is of type Object.

[2] mentions that the problem is with Maven's Avro plugin but I can't
figure out how to fix it. I can't even get it working when compiling the
sources by hand:

java -jar
compile schema src/main/avro/ src/main/java

Please help!

[1] http://avro.apache.org/docs/current/gettingstartedjava.html
Dan Filimon 2013-07-02, 07:22
Doug Cutting 2013-07-02, 17:31