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

Jens Geyer resolved THRIFT-3411.
--------------------------------
       Resolution: Duplicate
         Assignee: Jens Geyer
    Fix Version/s: 1.0

Cool, we have duplicates of duplicates :-)

> Go generates remotes with wrong package qualifiers when including
> -----------------------------------------------------------------
>
>                 Key: THRIFT-3411
>                 URL: https://issues.apache.org/jira/browse/THRIFT-3411
>             Project: Thrift
>          Issue Type: Bug
>          Components: Go - Compiler
>    Affects Versions: 1.0
>            Reporter: Eric Klaus
>            Assignee: Jens Geyer
>             Fix For: 1.0
>
>
> The Go Thrift compiler assumes that all service methods use only types from 
> the same namespace. If a service method uses a type from an included Thrift 
> file, the compiler still attempts to refer to the type using the calling 
> file's namespace.
> *Steps to reproduce:*
> 1. Create a new directory/project
> 2. Copy the files in the gist to the directory 
> (https://gist.github.com/ericklaus-wf/d986c6ab00e03fa935e3)
> 3. Generate Go code using Thrift
> 4. Examine the gen-go/expanded/my_service-remote/my_service-remote.go file
> 5. Line 133 refers to `expanded.NewBaseThing()` which does not exist.
> Expected:
> Line 133 should use `my_base.NewBaseThing` and an import for `my_base` should 
> be present.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to