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

Full support for the new net6 "nullability" semantics

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.16.0
    • 0.17.0
    • netstd - Compiler
    • None
    • Patch Available

    Description

      This is sort of an follow-up to THRIFT-5479.

      The initially chosen solution was to add an <autogenerate> tag to each generated C# source file, because otherwise the analysis would drop a whole lot of messages onto the user. One major reason behind this design was that it does not break compatibility.

      It turned out that that actually may do more harm than good, because of this issue, which has a really great potential to lead the developer into a false security, believing what the IDE tells, that values in some cases are not null - but what it really should say is "I did not analyze this code so I cannot safely tell anything".

      Hence, we should have better support for it.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m