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

SAXNotSupportedException is not thrown from SAXParserFactory.setFeature()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P3 P3
    • None
    • 1.2.0
    • xml
    • 1.2.0
    • sparc
    • solaris_8

      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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: