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

C# generates unsigned byte for Thrift "byte" type

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      Given the code

      struct test {
        1: byte field
      }
      

      the C# Generator generates

      public partial class test : TBase
      {
        private byte _field;
        // more code
      }
      

      which is wrong, as all Thrift integer types are considered signed.

      Attachments

        Issue Links

        Activity

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

          People

            jensg Jens Geyer
            jensg Jens Geyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment