Axis-C++
  1. Axis-C++
  2. AXISCPP-1023

Exception subclasses missing copy constructor

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.6 Beta
    • Fix Version/s: current (nightly)
    • Component/s: Client - API
    • Labels:
      None
    • Environment:
      Windows VC7

      Description

      AxisGenException is missing a copy constructor which causes crashes when exception is thrown.

      1. AxisCPP-1023.patch
        0.5 kB
        Wayne Johnson

        Issue Links

          Activity

          Hide
          Wayne Johnson added a comment -

          Patch to include copy constructor.

          Show
          Wayne Johnson added a comment - Patch to include copy constructor.
          Hide
          nadir amra added a comment -

          I chose to implement copy constructor as:

          // copy constructor
          AxisGenException(const AxisGenException& e): AxisException((const AxisException)e) { }

          since the submitted patch would have resulted in a duplicate message being generated.

          Please test and if problems, reopen or post.

          Thanks.

          Show
          nadir amra added a comment - I chose to implement copy constructor as: // copy constructor AxisGenException(const AxisGenException& e): AxisException((const AxisException)e) { } since the submitted patch would have resulted in a duplicate message being generated. Please test and if problems, reopen or post. Thanks.

            People

            • Assignee:
              Unassigned
              Reporter:
              Wayne Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development