JDK-8150256 : removing xerces-related dead code
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2016-02-19
  • Updated: 2020-01-29
  • Resolved: 2017-05-09
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 10 JDK 9
10Fixed 9 b169Fixed
Related Reports
Relates :  
Description
There is one open-source xerces-related file with missing copyright header

jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/XPointerSchema.java

I���m trying to trace the origin of this file and initially I thought that it���s a part of Apache Xerces but apparently no

There is no such file in Apache repo
	http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/xinclude/
and I didn���t find any revision that removes this file.

It seems like this file and other two files are OpenJDK-specific files and these files aren���t used

jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/XPointerSchema.java
jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/XPointerFramework.java
jaxp/src/java.xml/share/classes/com/sun/org/apache/xerces/internal/xinclude/XPointerElementHandler.java 

My understanding is that initially support for XPointer was missing in Apache Xerces and Sun implemented support for XPointer. But now Apache Xerces supports XPointer and these files are no longer used.

Comments
It's more effort to fix the copyright headers than it is to remove this (unused) code. So approved for JDK 9.
09-05-2017