Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3640

Cannot define service exception with argument name having numerical values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 0.9.3
    • None
    • Compiler (General)
    • None

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            plchung Paul
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: