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

Add a create() class method for factory-like instantiation

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • Patch Available

    Description

      Currently, the read() method is bound to each instance, but this makes impossible to make structures immutable (see THRIFT-162). The following patch changes the compiler to generate a class-bound read() method, it also updates the fastbinary extension accordingly.

      Attachments

        1. thrift-301_v9.patch
          14 kB
          Esteve Fernandez
        2. thrift-301_v8.patch
          14 kB
          Esteve Fernandez
        3. thrift-301_v7.patch
          14 kB
          Esteve Fernandez
        4. thrift-301_v6.patch
          11 kB
          Esteve Fernandez
        5. thrift-301_v5.patch
          10 kB
          Esteve Fernandez
        6. thrift-301_v4.patch
          9 kB
          Esteve Fernandez
        7. thrift-301_v3.patch
          9 kB
          Esteve Fernandez
        8. thrift-301_v2.patch
          7 kB
          Esteve Fernandez
        9. thrift-301.patch
          6 kB
          Esteve Fernandez

        Issue Links

          Activity

            People

              Unassigned Unassigned
              esteve Esteve Fernandez
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: