You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Lukasz Osipiuk (JIRA)" <ji...@apache.org> on 2008/08/12 17:46:45 UTC

[jira] Created: (THRIFT-107) Composite namespaces for C++ not allowed in .thrift file

Composite namespaces for C++ not allowed in .thrift file
--------------------------------------------------------

                 Key: THRIFT-107
                 URL: https://issues.apache.org/jira/browse/THRIFT-107
             Project: Thrift
          Issue Type: Improvement
          Components: Compiler (C++)
         Environment: Linux
svn revision 682458
            Reporter: Lukasz Osipiuk
            Priority: Minor


thrift compiler does not allow user to define a cpp namespace which includes :: in its name.

putting 
namespace cpp xx::yyy

in input .thirft file will report an error

[ERROR:/tmp/t.thrift:6] (last token was ':')
syntax error
[FAILURE:/tmp/t.thrift:6] Parser error during include pass.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (THRIFT-107) Composite namespaces for C++ not allowed in .thrift file

Posted by "David Reiss (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/THRIFT-107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Reiss resolved THRIFT-107.
--------------------------------

    Resolution: Invalid

Use dots instead.  "foo.bar" becomes the C++ namespace "foo::bar".

> Composite namespaces for C++ not allowed in .thrift file
> --------------------------------------------------------
>
>                 Key: THRIFT-107
>                 URL: https://issues.apache.org/jira/browse/THRIFT-107
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (C++)
>         Environment: Linux
> svn revision 682458
>            Reporter: Lukasz Osipiuk
>            Priority: Minor
>
> thrift compiler does not allow user to define a cpp namespace which includes :: in its name.
> putting 
> namespace cpp xx::yyy
> in input .thirft file will report an error
> [ERROR:/tmp/t.thrift:6] (last token was ':')
> syntax error
> [FAILURE:/tmp/t.thrift:6] Parser error during include pass.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.