RFR: JAXP in JDK8/7u40 : 8022548 : SPECJVM2008 has errors introduced in 7u40-b34

Lance Andersen - Oracle Lance.Andersen at oracle.com
Fri Aug 9 10:36:32 UTC 2013


Hi Joe,

The changes look fine

Best
Lance
On Aug 9, 2013, at 1:57 AM, huizhe wang wrote:

> Hi,
> 
> The root cause of this issue is that SPECJVM2008 uses a 3rd party parser XOM 1.1 to convert the output to its canonical form. The XOM parser directly references to the JDK parser implementation "SAXParser" with a different configuration than the default JDK parser, in this case, the DTD-only parser configuration "DTDConfiguration".  In JAXP 1.5, we added XMLSecurityPropertyManager that is instantiated in the default configuration "XML11Configuration".  Since XMLSecurityPropertyManager is not supported by DTDConfiguration, XOM no longer works.
> 
> This patch is to add the XMLSecurityPropertyManager to DTDConfiguration so that XOM will continue to work properly with jdk8/7u40. I don't know if there's any library out there that calls into NonValidatingConfiguration directly.  Since it's in a similar situation as DTDConfiguration, I added  XMLSecurityPropertyManager support as well.
> 
> webrec: http://cr.openjdk.java.net/~joehw/jdk8/8022548/webrev/
> 
> test:
>       I created a new test that runs with xom1.1.jar on the classpath, and passed.
>       all unit tests/SQE regression tests passed
> 
> Thanks,
> Joe

-------------- next part --------------

Lance Andersen| Principal Member of Technical Staff | +1.781.442.2037
Oracle Java Engineering 
1 Network Drive 
Burlington, MA 01803
Lance.Andersen at oracle.com



More information about the core-libs-dev mailing list