You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Dave Watson (JIRA)" <ji...@apache.org> on 2011/08/23 18:09:29 UTC

[jira] [Updated] (THRIFT-1284) thrift: fix processor inheritance

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

Dave Watson updated THRIFT-1284:
--------------------------------

    Attachment: 0013-thrift-fix-processor-inheritance.patch

>  thrift: fix processor inheritance

> -----------------------------------
>
>                 Key: THRIFT-1284
>                 URL: https://issues.apache.org/jira/browse/THRIFT-1284
>             Project: Thrift
>          Issue Type: Improvement
>          Components: C++ - Library
>            Reporter: Dave Watson
>            Priority: Minor
>         Attachments: 0013-thrift-fix-processor-inheritance.patch
>
>
> From fa7a7d7fb25f13e7f375f21b91ed119d84cebc04 Mon Sep 17 00:00:00 2001
> From: Adam Simpkins <si...@fb.com>
> Date: Sat, 3 Apr 2010 02:49:45 +0000
> Subject: [PATCH 13/33] thrift: fix processor inheritance
> Summary:
> I don't see any reason why all of the generated processor classes
> multiply inherit from TProcessor via all of their parent classes.
> This eliminates the virtual inheritance by changing the code so that
> only the first class in the heirarchy inherits from TProcessor or
> TAsyncProcessor.
> As part of this change, we now have to explicitly write
> "this->eventHandler_" instead of just "eventHandler_" so that the
> compiler can tell that this is an inherited member variable when we are
> generating template code.
> Test Plan:
> Built [internal fb thing] and a few other projects, and everything compiled fine.
> I haven't done much actual RPC testing.
> Revert Plan:
> OK
> Conflicts:
> 	compiler/cpp/src/generate/t_cpp_generator.cc
> ---
>  compiler/cpp/src/generate/t_cpp_generator.cc |   91 +++++++++++++-------------
>  1 files changed, 46 insertions(+), 45 deletions(-)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira