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

Generated Thrift structs should have a deep-copy constructor

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • Java - Compiler
    • None
    • Patch Available

    Description

      It'd be nice to be able to make a copy of a Thrift object by passing it as an argument to the constructor of the same object. Right now, we have to use a serialize/deserialize approach to making a deep object copy, and that seems really inefficient.

      Attachments

        1. thrift-138.patch
          4 kB
          Bryan Duxbury
        2. thrift-138-v2.patch
          4 kB
          Bryan Duxbury
        3. thrift-138-v3.patch
          4 kB
          Bryan Duxbury
        4. thrift-138-v4.patch
          9 kB
          Bryan Duxbury
        5. thrift-138-v5.patch
          10 kB
          Bryan Duxbury
        6. thrift-138-v6.patch
          9 kB
          Bryan Duxbury
        7. thrift-138-v7.patch
          10 kB
          Bryan Duxbury
        8. thrift-138-v7-test.patch
          4 kB
          Piotr Kozikowski
        9. thrift-138-v8.patch
          8 kB
          Piotr Kozikowski
        10. thrift-138-v9.patch
          5 kB
          Piotr Kozikowski

        Issue Links

          Activity

            People

              pkozikow Piotr Kozikowski
              bryanduxbury Bryan Duxbury
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: