You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avro.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/05/29 00:26:02 UTC

[jira] [Commented] (AVRO-1442) Case "FIXED" not handled in ResolvingGrammarGenerator

    [ https://issues.apache.org/jira/browse/AVRO-1442?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14011713#comment-14011713 ] 

ASF subversion and git services commented on AVRO-1442:
-------------------------------------------------------

Commit 1598161 from [~cutting] in branch 'avro/trunk'
[ https://svn.apache.org/r1598161 ]

AVRO-1442. Java: Fix ResolvingGrammarGenerator to work with fixed type.  Contributed by Jim Pivarski.

> Case "FIXED" not handled in ResolvingGrammarGenerator
> -----------------------------------------------------
>
>                 Key: AVRO-1442
>                 URL: https://issues.apache.org/jira/browse/AVRO-1442
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.7.6
>            Reporter: Jim Pivarski
>              Labels: exceptions
>             Fix For: 1.7.7
>
>         Attachments: AVRO-1442.patch
>
>
> Symptom: Attempts to match reader = FIXED against writer != FIXED results in a RuntimeException ("Unexpected schema type: FIXED"), rather than an appropriate Symbol.ErrorAction.
> Reason: In the ResolvingGrammarGenerator.generate method, there are two switch statements, one for writerType == readerType and the other for writerType != readerType.  In the latter, "case FIXED:" is missing.
> This is true in the GitHub version (HEAD?) as well: https://github.com/apache/avro/blob/branch-1.3/lang/java/src/java/org/apache/avro/io/parsing/ResolvingGrammarGenerator.java#L155



--
This message was sent by Atlassian JIRA
(v6.2#6252)