RFR [14/java.xml] 8230814: Enable SAX ContentHandler to handle XML Declaration

Joe Wang huizhe.wang at oracle.com
Fri Sep 13 20:50:06 UTC 2019


On 9/13/19 12:20 PM, Alan Bateman wrote:
> On 13/09/2019 19:53, Joe Wang wrote:
>> Please review a new method addition to SAX ContentHandler that allows 
>> a SAX parser to send back information about the declaration of the 
>> input document.
>>
>> JBS: https://bugs.openjdk.java.net/browse/JDK-8230814
>>
>> CSR: https://bugs.openjdk.java.net/browse/JDK-8230824
> This adds a method to an API that was originally developed by the SAX 
> project. Can you summarize the relationship to that project? Is that 
> project dead and the API subsumed by Java SE? Just asking as I don't 
> recall API additions being done here (I remember the work in 
> JDK-8152912 to deprecate XMLReaderFactory but I don't recall any 
> additional or removals).

It can be said that the SAX project, in terms of the API work, was dead 
a long time ago. There hasn't been any updates/changes since SAX 2.0.2 
released in 2004[1]. SAX is in public domain [2]. Sun/Oracle 
incorporated SAX2 in Java SE with a GPL license. I assume we're free to 
make changes. Please let me know if you think otherwise.

[1] http://sax.sourceforge.net/
[2] http://sax.sourceforge.net/copying.html

Thanks
Joe

>
> -Alan.



More information about the core-libs-dev mailing list