avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Filimon <dangeorge.fili...@gmail.com>
Subject Cannot compile generated classes in Java
Date Mon, 01 Jul 2013 13:41:07 GMT

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

View raw message