[
https://issues.apache.org/jira/browse/THRIFT-1434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wade Simmons updated THRIFT-1434:
---------------------------------
Attachment: 0001-We-need-to-use-Thrift.inherits-for-Processors-like-w.patch
The current compiler is only calling Thrift.inherits for Clients, not for
Processors. This patch fixes this issue (confirmed with the bug submitter).
> 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
> 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