Exception types are not namespace-qualified in catch() blocks of the generated 
C++ code
---------------------------------------------------------------------------------------

                 Key: THRIFT-194
                 URL: https://issues.apache.org/jira/browse/THRIFT-194
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (C++)
            Reporter: Tamás Nepusz
            Priority: Minor
         Attachments: exc_handling_cpp.patch

This patch fixes a bug in the C++ generator when handling exceptions in 
{{process_*}} methods if the exception has a namespace qualifier different from 
the namespace used in the main Thrift file. (This happens when including a 
Thrift file from another one that has a different namespace). The patch is 
against the trunk code last updated on 6 Nov 2008.

Steps to reproduce the original bug:

included.thrift:
{quote}
namespace cpp aNamespace
exception anException { string why }
{quote}

main.thrift:
{quote}
include 'shared.thrift'

namespace cpp anotherNamespace
service aService {
  bool aFunction() throws ( 1: shared.anException exc )
}
{quote}

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to