[ 
https://issues.apache.org/jira/browse/THRIFT-1284?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13089873#comment-13089873
 ] 

Hudson commented on THRIFT-1284:
--------------------------------

Integrated in Thrift #230 (See [https://builds.apache.org/job/Thrift/230/])
    THRIFT-1284. cpp: fix processor inheritance 

Don't make processors that have a proper parent class also inherit from 
TProcessor.

Patch: Adam Simpkins

bryanduxbury : http://svn.apache.org/viewvc/?view=rev&rev=1160933
Files : 
* /thrift/trunk/compiler/cpp/src/generate/t_cpp_generator.cc


>  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
>            Assignee: Dave Watson
>            Priority: Minor
>             Fix For: 0.8
>
>         Attachments: 0013-thrift-fix-processor-inheritance.patch
>
>
> From fa7a7d7fb25f13e7f375f21b91ed119d84cebc04 Mon Sep 17 00:00:00 2001
> From: Adam Simpkins <[email protected]>
> 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

        

Reply via email to