[
https://issues.apache.org/jira/browse/THRIFT-3640?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15149817#comment-15149817
]
Benjamin Gould commented on THRIFT-3640:
----------------------------------------
Tested this with 0.9.3 and I'm able to reproduce.
However works ok with recent build from master branch.
Might be related to THRIFT-3477
> 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)