You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Roger Meier (Resolved) (JIRA)" <ji...@apache.org> on 2011/11/23 22:04:39 UTC

[jira] [Resolved] (THRIFT-1434) Node.js Thrift compiler fails to generate server code using inheritance

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

Roger Meier resolved THRIFT-1434.
---------------------------------

    Resolution: Fixed
      Assignee: Wade Simmons

committed!

Ken, could you please provide the test cases as patch?
see http://wiki.apache.org/thrift/HowToContribute
or as part of THRIFT-1134 ?

                
> Node.js Thrift compiler fails to generate server code using inheritance
> -----------------------------------------------------------------------
>
>                 Key: THRIFT-1434
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1434
>             Project: Thrift
>          Issue Type: Bug
>          Components: JavaScript - Compiler
>    Affects Versions: 0.7
>         Environment: Ubuntu 10.04 LTS, MacOS X 10.5
>            Reporter: Ken Wronkiewicz
>            Assignee: Wade Simmons
>              Labels: nodejs
>         Attachments: 0001-We-need-to-use-Thrift.inherits-for-Processors-like-w.patch, thrift-1434-2.tar.bz2, thrift-1434.tar.bz2
>
>
> Test case to be attached.
> If I create a service B that extends a service A, the client code is correctly generated such that the user could create a client of service B and use the functions provided by service A.
> However, if I try to create a server for service B, it will not expose functions used by service A.
> Attached test case, written in node.js, has good-server.js and bad-server.js, where bad-server.js implements the child service and good-server.js which implements the parent service.  test.js will try to connect and print out the error message and build.sh will rebuild the thrift generated code.

--
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