You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "John Boiles (Jira)" <ji...@apache.org> on 2019/11/09 00:11:00 UTC

[jira] [Created] (THRIFT-5002) Golang: remote client fails to compile when extending services

John Boiles created THRIFT-5002:
-----------------------------------

             Summary: Golang: remote client fails to compile when extending services
                 Key: THRIFT-5002
                 URL: https://issues.apache.org/jira/browse/THRIFT-5002
             Project: Thrift
          Issue Type: Task
          Components: Go - Compiler
    Affects Versions: 0.13.0
            Reporter: John Boiles


For example, for this test case
{code}
service container_test_base {
    void setfunc(1: set<i32> s)
}

service container_test extends container_test_base {
}
{code}

This error occurs when compiling the Go code
{code}
gopath/src/servicestest/container_test-remote/container_test-remote.go:163:25: undefined: servicestest.NewContainerTestSetfuncArgs
{code}

That is because there is no generated code for {{NewContainerTestSetfuncArgs}} but instead only {{NewContainerTestBaseSetfuncArgs}}. We should probably fix this either by also generating {{NewContainerTestSetfuncArgs}} or using {{NewContainerTestBaseSetfuncArgs}} from the remote client for the derived service.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)