Thrift compiler does not error when duplicate method names are present
----------------------------------------------------------------------

                 Key: THRIFT-570
                 URL: https://issues.apache.org/jira/browse/THRIFT-570
             Project: Thrift
          Issue Type: Bug
          Components: Compiler (C#), Compiler (C++), Compiler (Cocoa), Compiler 
(Erlang), Compiler (General), Compiler (Haskell), Compiler (Java), Compiler 
(Perl), Compiler (PHP), Compiler (Python), Compiler (Ruby)
            Reporter: Rob Slifka


Thrift does not support method overloading.  However, the Thrift compiler 
reports success when duplicate methods are seen in a service definition.

Thrift compiles this successfully, however the generated code will not compile.

{code}
#!/usr/local/bin/thrift --gen java
namespace java tutorial
service Calculator {
    i32 add(1:i32 num1, 2:i32 num2),
    string add(1:string str1, 2:string str2),
}
{code}

-- 
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