[
https://issues.apache.org/jira/browse/AVRO-1368?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13751498#comment-13751498
]
Christophe Taton commented on AVRO-1368:
----------------------------------------
This only affects the SpecificDatumWriter. With a GenericDatumWriter, I get the
following error:
java.lang.ClassCastException: java.lang.Object cannot be cast to
java.lang.CharSequence
at
org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:213)
at
org.apache.avro.generic.GenericDatumWriter.writeString(GenericDatumWriter.java:208)
at
org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:76)
at
org.apache.avro.generic.GenericDatumWriter.write(GenericDatumWriter.java:58)
> String schema accepts any Java object, and converts it with toString()
> ----------------------------------------------------------------------
>
> Key: AVRO-1368
> URL: https://issues.apache.org/jira/browse/AVRO-1368
> Project: Avro
> Issue Type: Bug
> Components: java
> Affects Versions: 1.7.5
> Reporter: Christophe Taton
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira