RFR (jaxp): 8016153 : Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized. (original) (raw)
huizhe wang huizhe.wang at oracle.com
Mon Jun 10 20:32:41 UTC 2013
- Previous message: RFR (jaxp): 8016153 : Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized.
- Next message: RFR (S) CR 8016236: Class.getGenericInterfaces performance improvement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 6/10/2013 1:04 PM, Daniel Fuchs wrote:
Hi Joe,
Looks good. I wonder whether using java.util.logging would be more (or less) appropriate than System.err.println()?
It would make sense. The current error/warning report system came from the original source. System.err is consistent with that of the current system.
Best, Joe
best regards, -- daniel On 6/10/13 9:26 PM, huizhe wang wrote: Thanks Lance!
As Daniel noted, I added warnings to these additional property settings, but there are a couple of other places in the original JAXP 1.5 impl that did not have warning. I've added the warning message now (in ValidatorHandlerImpl.java and XMLReaderManager.java). Also, in ValidatorHandlerImpl.java, there was a redundant setting at line 677 that would invalidate a 3rd party impl. This was a porting error when the patch was ported from jaxp standalone[1] to JDK. It is now removed. webrev: http://cr.openjdk.java.net/~joehw/jdk8/8016153/webrev/ [1] jaxp standalone source https://java.net/projects/jaxp-sources/sources/svn/content/trunk/xml-xerces/java/src/com/sun/org/apache/xerces/internal/jaxp/validation/ValidatorHandlerImpl.java?rev=3134
Thanks, Joe On 6/10/2013 9:44 AM, Lance Andersen - Oracle wrote: looks fine joe -lance On Jun 8, 2013, at 4:11 PM, huizhe wang wrote:
Hi,
This patch is to continue the support of plugging in 3rd party parser impls (such as Xerces) that do not support JAXP 1.5. The fix is to catch SAXNotRecognizedException, print out a warning, and then continue as usual. The warning is for the developer in case he actually sets the new access* properties on the TransformerFactory but has a 3rd party parser on the classpath that does not support the new properties. webrev: http://cr.openjdk.java.net/~joehw/jdk8/8016153/webrev/ I intend to backport the change to 7u. The change will be identical. Thanks, Joe
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
- Previous message: RFR (jaxp): 8016153 : Property http://javax.xml.XMLConstants/property/accessExternalDTD is not recognized.
- Next message: RFR (S) CR 8016236: Class.getGenericInterfaces performance improvement
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]