Paul created THRIFT-3640:
----------------------------
Summary: 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)