Repository: thrift Updated Branches: refs/heads/master 0ad20bdbf -> 44701e82a
THRIFT-4306 Thrift imports not replicated to D service output Client: D language Patch: Neia Neutuladh Project: http://git-wip-us.apache.org/repos/asf/thrift/repo Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/44701e82 Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/44701e82 Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/44701e82 Branch: refs/heads/master Commit: 44701e82ad351d7472101ad81aa13e775ffb7384 Parents: 0ad20bd Author: Jens Geyer <je...@apache.org> Authored: Thu Oct 19 23:15:51 2017 +0200 Committer: Jens Geyer <je...@apache.org> Committed: Thu Oct 19 23:16:32 2017 +0200 ---------------------------------------------------------------------- compiler/cpp/src/thrift/generate/t_d_generator.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/thrift/blob/44701e82/compiler/cpp/src/thrift/generate/t_d_generator.cc ---------------------------------------------------------------------- diff --git a/compiler/cpp/src/thrift/generate/t_d_generator.cc b/compiler/cpp/src/thrift/generate/t_d_generator.cc index b602e0d..159d93a 100644 --- a/compiler/cpp/src/thrift/generate/t_d_generator.cc +++ b/compiler/cpp/src/thrift/generate/t_d_generator.cc @@ -103,7 +103,7 @@ protected: // Include type modules from other imported programs. const vector<t_program*>& includes = program_->get_includes(); for (size_t i = 0; i < includes.size(); ++i) { - f_types_ << "import " << render_package(*(includes[i])) << includes[i]->get_name() + f_types_ << "public import " << render_package(*(includes[i])) << includes[i]->get_name() << "_types;" << endl; } if (!includes.empty())