JDK-7157608 : One feature is not recognized.
  • Type: Bug
  • Component: xml
  • Sub-Component: javax.xml.parsers
  • Affected Version: 7u2
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_7
  • CPU: x86
  • Submitted: 2012-03-29
  • Updated: 2012-08-03
  • Resolved: 2012-07-13
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8
7u6 b15Fixed 8Fixed
Description
The problem is found in JAXP RI 1.4.5.

There is an error occurred if the following feature is set on DocumentBuilderFactory, SAXParserFactory.

http://apache.org/xml/features/standard-uri-conformant

The steps of using the attached test program:

1. unzip 001.zip
2. cd TP folder
3. launch go.bat

The errors below can be seen.

-----
DOM : NG Feature 'http://apache.org/xml/features/standard-uri-conformant' is not recognized.
SAX : NG Feature 'http://apache.org/xml/features/standard-uri-conformant' is not recognized.
-----

We expect the correct output as follows with the TP.

-----
DOM : OK
SAX : OK
-----

The diff for the fix is under src folder.

Comments
EVALUATION The impl code was in the RI, but the feature was missing from the recognized list.
08-06-2012