You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Reiss (JIRA)" <ji...@apache.org> on 2008/11/21 22:37:44 UTC

[jira] Resolved: (THRIFT-194) Exception types are not namespace-qualified in catch() blocks of the generated C++ code

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

David Reiss resolved THRIFT-194.
--------------------------------

    Resolution: Fixed

> 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:
> {code:title=shared.thrift}
> namespace cpp aNamespace
> exception anException { string why }
> {code}
> {code:title=main.thrift}
> include 'shared.thrift'
> namespace cpp anotherNamespace
> service aService {
>   bool aFunction() throws ( 1: shared.anException exc )
> }
> {code}

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