avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Filimon <dangeorge.fili...@gmail.com>
Subject Re: Cannot compile generated classes in Java
Date Tue, 02 Jul 2013 07:22:48 GMT
I got the same code to work using Avro pre-1.7.3. But why isn't it working
afterwards?
All the JARs seem to be the right version.


On Mon, Jul 1, 2013 at 4:41 PM, Dan Filimon <dangeorge.filimon@gmail.com>wrote:

> Hi!
>
> I followed the instructions at [1] but am unable to compile the schemas I
> defined.
> 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
> ~/.m2/repository/org/apache/avro/avro-tools/1.7.4/avro-tools-1.7.4.jar
> compile schema src/main/avro/ src/main/java
>
> Please help!
>
> [1] http://avro.apache.org/docs/current/gettingstartedjava.html
> [2]
> http://search-hadoop.com/m/5kwYILlAHw1/avro+incompatible+types&subj=1+7+3+regression+
>

Mime
View raw message