You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Terry Jones (JIRA)" <ji...@apache.org> on 2009/05/14 22:09:45 UTC

[jira] Created: (THRIFT-508) Services that define a method twice should raise an error (in Python compiler, at least)

Services that define a method twice should raise an error (in Python compiler, at least)
----------------------------------------------------------------------------------------

                 Key: THRIFT-508
                 URL: https://issues.apache.org/jira/browse/THRIFT-508
             Project: Thrift
          Issue Type: Improvement
          Components: Compiler (Python)
    Affects Versions: 0.1
            Reporter: Terry Jones
            Priority: Minor


If you define a Thrift service that mentions the same method more than once, the Python compiler generates code for the method more than once. Given that this is (almost?) certainly an error in the Thrift service specification, it should be flagged and, I think, an error should be raised. This will prevent people (like me) from becoming the victim seemingly mysterious Thrift service failures due to silly cut & paste errors when editing specification files.


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


[jira] Commented: (THRIFT-508) Services that define a method twice should raise an error (in Python compiler, at least)

Posted by "Rob Slifka (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/THRIFT-508?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12756682#action_12756682 ] 

Rob Slifka commented on THRIFT-508:
-----------------------------------

This is the same as THRIFT-570, which has a fix submitted.  Should probably be closed duplicate.


> Services that define a method twice should raise an error (in Python compiler, at least)
> ----------------------------------------------------------------------------------------
>
>                 Key: THRIFT-508
>                 URL: https://issues.apache.org/jira/browse/THRIFT-508
>             Project: Thrift
>          Issue Type: Improvement
>          Components: Compiler (Python)
>    Affects Versions: 0.1
>            Reporter: Terry Jones
>            Priority: Minor
>
> If you define a Thrift service that mentions the same method more than once, the Python compiler generates code for the method more than once. Given that this is (almost?) certainly an error in the Thrift service specification, it should be flagged and, I think, an error should be raised. This will prevent people (like me) from becoming the victim seemingly mysterious Thrift service failures due to silly cut & paste errors when editing specification files.

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