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

Wrong overload chosen in XercesStep::serialize()

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.6.0
    • Build
    • None
    • Operating System: All
      Platform: All
    • 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

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

            Dates

              Created:
              Updated:
              Resolved: