You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Mark Slee (JIRA)" <ji...@apache.org> on 2008/09/30 00:02:44 UTC
[jira] Closed: (THRIFT-150) Exceptions thrown from included files
not namespaced properly
[ https://issues.apache.org/jira/browse/THRIFT-150?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Slee closed THRIFT-150.
----------------------------
Resolution: Fixed
Committed revision 700277.
> Exceptions thrown from included files not namespaced properly
> -------------------------------------------------------------
>
> Key: THRIFT-150
> URL: https://issues.apache.org/jira/browse/THRIFT-150
> Project: Thrift
> Issue Type: Bug
> Components: Compiler (Python)
> Reporter: Mark Slee
>
> A namespace is not defined.
> I have a shared.thrift:
> exception InvalidOperation {
> 1: i32 what,
> 2: string why
> }
> In my test.thrift:
> include "shared.thrift"
> service Test {
> bool my_func(1:i32 something) throws (1:shared.InvalidOperation ouch),
> }
> When this is generated in python, the test class throws an error because the following ends up getting generated:
> except InvalidOperation, io:
> result.io = io
> shared.ttypes is not added to the front of InvalidOperation, so python throws an error from the generated class.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.