[
https://issues.apache.org/jira/browse/AVRO-1320?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13650880#comment-13650880
]
Bernd Fondermann commented on AVRO-1320:
----------------------------------------
the patch itself works, but does not resolve things for me.
after applying the patch, WPPage now contains in put()
case 3: type = (generated.WPPageType)value$; break;
However, even with a freshly generated trevi file, when reading it I still get:
Exception in thread "main" java.lang.ClassCastException: java.lang.Integer
cannot be cast to generated.WPPageType
It seems the deserialization still creates an Integer.
> Java: Trevni incorrectly reads specific enums.
> ----------------------------------------------
>
> Key: AVRO-1320
> URL: https://issues.apache.org/jira/browse/AVRO-1320
> Project: Avro
> Issue Type: Bug
> Components: java
> Reporter: Doug Cutting
> Assignee: Doug Cutting
> Fix For: 1.7.5
>
> Attachments: AVRO-1320.patch
>
>
> Enums generated by the specific compiler are not read correctly when written
> to an Avro data file.
> Reported by Bernd Fondermann on the developer mailing list.
--
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