You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@avro.apache.org by Ashish Nigam <as...@gmail.com> on 2015/05/26 18:06:19 UTC

Generating code using mavin plugin for schema that has Date type

Here's what I did =

1) Using ReflectData, I generated schema for an existing Class that
java.util.Date as member variable.
2) Use avro-maven-plugin to generate classes from the schema generated
above, that can be used for serialization.

The real problem is that it generates its own instance of java.util.Date
class.
As this class becomes part of classpath, all other classes that use
java.util.Date start throwing compilation error like this

 error: constructor Date in class Date cannot be applied to given types;

[ERROR]  actual and formal argument lists differ in length


It seems to be pretty basic issue that would have been resolved or have
some workaround. Any suggestions?

I am using 1.7.4 version of mavin plugin. Latest version also did not work.


Thanks

Ashish