[ https://issues.apache.org/jira/browse/THRIFT-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149821#comment-15149821 ]
Benjamin Gould commented on THRIFT-3640: ---------------------------------------- Also, workaround on 0.9.3 seems to be to use a different argument name that doesn't start with 'e' followed by a number... for example 'm1' works fine. > Cannot define service exception with argument name having numerical values > -------------------------------------------------------------------------- > > Key: THRIFT-3640 > URL: https://issues.apache.org/jira/browse/THRIFT-3640 > Project: Thrift > Issue Type: Bug > Components: C# - Compiler > Affects Versions: 0.9.3 > Reporter: Paul > Priority: Minor > > Try this IDL > ======== > namespace csharp whatever > exception DataServiceException { > 1: optional string message; > } > service SomeDataService { > string Version() throws (1:DataServiceException e1); > } > ======== > And run 0.9.3 compiler for csharp > thrift -r -gen csharp aaa.thrift > [ERROR:....../aaa.thrift:10] (last token was 'e1') > syntax error > [FAILURE:...../aaa.thrift:10] Parser error during include pass. > If you change the exception name from e1 to e, then it would compile no > problem. -- This message was sent by Atlassian JIRA (v6.3.4#6332)