You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Suresh Srinivas (JIRA)" <ji...@apache.org> on 2012/10/27 02:47:12 UTC

[jira] [Commented] (HADOOP-8985) Add namespace declarations in .proto files for languages other than java

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

Suresh Srinivas commented on HADOOP-8985:
-----------------------------------------

Please create a separate jira for HDFS. Lets do the hadoop-common-project ones in this.
                
> Add namespace declarations in .proto files for languages other than java
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-8985
>                 URL: https://issues.apache.org/jira/browse/HADOOP-8985
>             Project: Hadoop Common
>          Issue Type: Improvement
>            Reporter: Binglin Chang
>            Priority: Minor
>
> Currently .proto files use java_package to specify java packages in proto files, but namespace are not specified for other languages such as cpp, this causes name collision in cpp. we can add namespace declarations to avoid this. 
> In Java, the package specifier is used as the Java package, unless you explicitly provide a option java_package in your .proto file. So the original java package will not be affected.
> About namespace name, how about "hadoop.common"(hadoop::common in cpp) for all common sub-project proto files, and "hadoop.hdfs"(hadoop::hdfs in cpp) for all hdfs sub-project proto files?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira