Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1434

Node.js Thrift compiler fails to generate server code using inheritance

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7
    • None
    • JavaScript - Compiler
    • Ubuntu 10.04 LTS, MacOS X 10.5

    Description

      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.

      Attachments

        1. thrift-1434.tar.bz2
          17 kB
          Ken Wronkiewicz
        2. thrift-1434-2.tar.bz2
          19 kB
          Ken Wronkiewicz
        3. 0001-We-need-to-use-Thrift.inherits-for-Processors-like-w.patch
          2 kB
          Wade Simmons

        Activity

          People

            wadey Wade Simmons
            wirehead Ken Wronkiewicz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: