Author: mrglavas
Date: Mon Mar 16 19:51:30 2015
New Revision: 1667114
URL: http://svn.apache.org/r1667114
Log:
Some XMLStreamReader implementations throw an exception instead of returning
null for properties they do not recognize. Tolerate an exception and assume
that the XMLStreamReader does not provide interned strings.
Modified:
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
Modified:
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java?rev=1667114&r1=1667113&r2=1667114&view=diff
==============================================================================
---
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
(original)
+++
xerces/java/trunk/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
Mon Mar 16 19:51:30 2015
@@ -354,7 +354,12 @@ final class StAXValidatorHelper implemen
"StAXIllegalInitialState", null));
}
fXMLStreamReaderLocation.setXMLStreamReader(reader);
- setup(fXMLStreamReaderLocation, result,
Boolean.TRUE.equals(reader.getProperty(STRING_INTERNING)));
+ Object isInterning = Boolean.FALSE;
+ try {
+ isInterning = reader.getProperty(STRING_INTERNING);
+ }
+ catch (Exception e) {}
+ setup(fXMLStreamReaderLocation, result,
Boolean.TRUE.equals(isInterning));
fSchemaValidator.startDocument(fStAXLocationWrapper, null,
fNamespaceContext, null);
do {
switch (eventType) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]