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

D codegen bug for required non-nullable fields

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • None
    • None
    • D - Library
    • None
    • Patch Available

    Description

      The attached patches fix handling of structs with non-nullable (as in assignability of null to their D representation), required fields, and add a simple test case to prevent similar stupid mistakes in the future.

      An actual test case for the functionality should be added to the standalone test site at some point (I was absolutely surprised that this is not covered yet), but I can't spare the time to do so right now, and fixing the issue is critical, as it e.g. breaks the HBase Thrift interface for D.

      Attachments

        Activity

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

          People

            klickverbot David Nadlinger
            klickverbot David Nadlinger
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment