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

Default value of enum is starting at zero in Java

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Documentation
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Tutorial
    • None

    Description

      https://github.com/apache/thrift/blob/master/tutorial/tutorial.thrift#L88

      The tutorial said "Values are optional and start at 1 if not supplied", but it start at 0 in Java.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            xyz Yunze Xu

            Dates

              Created:
              Updated:

              Slack

                Issue deployment