Uploaded image for project: 'Axis-C++'
  1. Axis-C++
  2. AXISCPP-918

generated copy constructor wrong/incomplete

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.6 Alpha
    • None
    • Client - Stub
    • None
    • WIN2KSP4 JDK1.5.0_06 MSVC6SP6

    Description

      Wsdl2ws generates for the t_Children class from my attached example an incomplete copy constructor.
      Only one of two class members gets copied (age), the other is omitted (t_Children_value).
      Additional comments:
      Initialization instead of assignment should be used in constructors.
      For this simple example no copy constructor should be generated at all, since the compiler does it right without a line of code.
      Last, if a userdefined copy constructor is to be provided, a user defined assignment operator should be provided too.

      Attachments

        1. t_Children.cpp
          3 kB
          Franz Fehringer
        2. vakanz.wsdl
          4 kB
          Franz Fehringer
        3. vakanz.xsd
          40 kB
          Franz Fehringer

        Issue Links

          Activity

            People

              Unassigned Unassigned
              fehrin Franz Fehringer
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: