Uploaded image for project: 'Xerces-C++'
  1. Xerces-C++
  2. XERCESC-1177

Wrong overload chosen in XercesStep::serialize()

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.6.0
    • Component/s: Build
    • Labels:
      None
    • Environment:
      Operating System: All
      Platform: All
    • Bugzilla Id:
      27745

      Description

      I set XMLCh to wchar_t on Solaris 2.8, and got an error from this line
      in validators/schema/identity/XercesXPath.cpp, line 294:

      serEng<<fAxisType;

      type of fAxisType is "unsigned short", and I think it was finding
      this overload before:

      XSerializeEngine::operator<<(const XMLCh&)

      which probably isn't what was intended.

      I changed the line to

      serEng<< (int) fAxisType;

      and line 299:
      serEng>> (int) fAxisType;

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              david_j_dawkins@hotmail.com David Dawkins
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: