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

Introduce i8 to provide consistent set of Thrift IDL integer types

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.10.0
    • Compiler (General)
    • Patch Available

    Description

      In following up a recent email discussion and the consistent stream of problems with the signedness of the Thrift IDL byte datatype, we should

      • add an i8 data type to provide a consistent set
      • keep the byte type for the sake of compatibility
      • internally map all references to byte to i8

      I'm hesitant though about printing a warning for byte at this stage. A lot of third-party-tools rely on Thrift IDL and I don't want to introduce any breaking changes. IMHO we should promote i8 instead of byte wherever possible, but not hammer that nail too much.

      This patch is solely about the changes needed in the IDL and the compiler infrastructure, changing only what's necessary in the various target languages to let make check succeed. Any additional changes to be made in the language libs should be added as a sub-task as necessary. This procedure allows us to make the changes in a more granular way while still maintaining a shippable product.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: