avro-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Plevyak (JIRA)" <j...@apache.org>
Subject [jira] Created: (AVRO-523) records with the same name as a member generate bad c++ code
Date Thu, 22 Apr 2010 18:07:51 GMT
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


records with the same name as a member generate bad c++ code:

{
    "type" : "array",
    "name" : "optionals",
    "items" : [
       { "name" : "l", "type" : "record", "fields" : [ { "name" : "l", "type": "long"} ] },
       { "name" : "r", "type" : "record", "fields" : [ { "name" : "r", "type": "long"} ] }
    ]
}

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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message