[ 
https://issues.apache.org/jira/browse/AVRO-1056?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Doug Cutting updated AVRO-1056:
-------------------------------

    Fix Version/s:     (was: 1.6.3)
                   1.7.0
         Assignee: Kevin Zhao

Patch looks good to me and existing tests pass with it applied.

We should also add a test to TestReflect.java that fails without this patch but 
succeeds with it.
                
> ReflectData thinks the instance of a java.util.Map as a record type
> -------------------------------------------------------------------
>
>                 Key: AVRO-1056
>                 URL: https://issues.apache.org/jira/browse/AVRO-1056
>             Project: Avro
>          Issue Type: Bug
>          Components: java
>    Affects Versions: 1.6.3
>         Environment: MacOSX 10.7.2
> Eclipse 3.7
> JDK1.6
>            Reporter: Kevin Zhao
>            Assignee: Kevin Zhao
>             Fix For: 1.7.0
>
>         Attachments: ReflectData.java.patch
>
>
> the avro's java api org.apache.avro.reflect.ReflectData.isRecord() should add 
> the following code.
>   if (datum instanceof Map) return false;

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to