Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4546114

SAXNotSupportedException is not thrown from SAXParserFactory.setFeature()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3
    • Resolution: Not an Issue
    • Affects Version/s: 1.2.0
    • Fix Version/s: None
    • Component/s: xml
    • Labels:
    • Subcomponent:
    • Introduced In Build:
      1.2.0
    • Introduced In Version:
    • CPU:
      sparc
    • OS:
      solaris_8

      Description

      tag info: xalan-j_2_2_d11, Xerces-J_2_0_0_beta3

      There are 2 issues

      1. According to latest SAX doc from http://www.saxproject.org/, when external-general-entities should be always true when validating. In the test case, I successfully set to false after I set validating to true.

      2. This one I am not quite sure. From the original doc, http://www.megginson.com/SAX/Java/features.html, it has a access field specify that external-general-entities and external-parameter-entites are read-only when parsing. In the latest doc from saxproject.org, it doesn't have access field. So I am not sure whether I can set it at all (ie. when I try to setFeature(external-general-entities), it should throw SAXNotSupportedException)

      See attachment to reproduce

        Attachments

          Activity

            People

            Assignee:
            ayadavsunw Arun Yadav (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: