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

"required" keyword is illegal in a "throws" clause

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 0.18.0
    • Compiler (General)
    • None
    • Patch Available

    Description

      The following code may produce incorrect code (depending on the target language implementation) due to the unexpected "required" keyword.

      exception foobar {
      }
      
      service foo {
        void bar() throws (1: required foobar e)	
      }
      

      produces for example with a netstd target

      foo.cs(85,16,85,23): error CS1061: "foo.InternalStructs.bar_result" 
      foo.cs(355,19,355,26): error CS1061: "foo.InternalStructs.bar_result" 
      

      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 - 10m
                  10m