You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Michi Mutsuzaki (JIRA)" <ji...@apache.org> on 2012/05/21 04:17:40 UTC
[jira] [Commented] (ZOOKEEPER-1471) Jute generates invalid C++ code
[ https://issues.apache.org/jira/browse/ZOOKEEPER-1471?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13279926#comment-13279926 ]
Michi Mutsuzaki commented on ZOOKEEPER-1471:
--------------------------------------------
I didn't include a test for this since the existing jute code doesn't have a test either. I generated C++ code with the modified version of jute and verified it fixed all the compilation errors.
--Michi
> Jute generates invalid C++ code
> -------------------------------
>
> Key: ZOOKEEPER-1471
> URL: https://issues.apache.org/jira/browse/ZOOKEEPER-1471
> Project: ZooKeeper
> Issue Type: Bug
> Components: jute
> Affects Versions: 3.4.3
> Reporter: Michi Mutsuzaki
> Assignee: Michi Mutsuzaki
> Priority: Minor
> Fix For: 3.5.0
>
> Attachments: ZOOKEEPER-1471.patch
>
>
> There are 2 issues with the current jute generated C++ code.
> 1. Variable declaration for JRecord is incorrect. It looks something like this:
> {code}
> Id id;
> {code}
> It should be like this instead:
> {code}
> org::apache::zookeeper::data::Id mid;
> {code}
> 2. The header file declares all the variables (except for JRecord ones) with "m" prefix, but the .cc file doesn't use the prefix.
--
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