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

SAX2XMLReader::setFeature() handles feature use-cachedGrammarInParse incorrectly

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.6.0
    • Fix Version/s: 2.7.0
    • Component/s: SAX/SAX2
    • Labels:
      None
    • Environment:
      RedHat Linux, kernel 2.4.20-18.9, xerces-c_2_6_0-redhat_80-gcc_32

      Description

      According to the documentation (SAX2 Programming Guide and Xerces-C++ Documentation), the setFeature() method of SAX2XMLReader is supposed to handle changes of the feature "http://apache.org/xml/features/validation/use-cachedGrammarInParse" as a no-op. Instead of doing so, it throws an exception, even if the feature is set to its current (valid) value.

      In my eyes, setFeature() should throw a SAXNotSupportedException only if the user tries to set the feature to a value different from its current value, and do nothing otherwise.

      If the implemented behavior is intended, the documentation should be updated accordingly.

      Stefan Letz.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              sletz sletz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: