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

Parser fails on enum item that starts with 'E' letter and continues with number

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.10.0
    • Component/s: Compiler (General)
    • Labels:
      None

      Description

      Consider simple enum:

      enum Test
      {
          E10
      }
      

      It will fail with message

      [ERROR:C:/Test.thrift:3] (last token was 'E10') syntax error
      [FAILURE:C:/Test.thrift:3] Parser error during include pass.
      

        Attachments

          Activity

            People

            • Assignee:
              jensg Jens Geyer
              Reporter:
              cstrike Gordashnikov Artur
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: