avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "peter liu (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (AVRO-523) records with the same name as a member generate bad c++ code
Date Sun, 30 Aug 2015 19:13:46 GMT

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

peter liu reassigned AVRO-523:
------------------------------

    Assignee: peter liu

> records with the same name as a member generate bad c++ code
> ------------------------------------------------------------
>
>                 Key: AVRO-523
>                 URL: https://issues.apache.org/jira/browse/AVRO-523
>             Project: Avro
>          Issue Type: Bug
>          Components: c++
>            Reporter: John Plevyak
>            Assignee: peter liu
>
> records with the same name as a member generate bad c++ code:
> {code}
> {
>     "type" : "array",
>     "name" : "optionals",
>     "items" : [
>        { "name" : "l", "type" : "record", "fields" : [ { "name" : "l", "type": "long"}
] },
>        { "name" : "r", "type" : "record", "fields" : [ { "name" : "r", "type": "long"}
] }
>     ]
> }
> {code}
> produces c++ code such that when it is compiled it produces:
> union2.h:42: error: field 'int64_t avrouser::l::l' with same name as class



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message