[prev in list] [next in list] [prev in thread] [next in thread]
List: xerces-cvs
Subject: svn commit: r1667115 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validatio
From: mrglavas () apache ! org
Date: 2015-03-16 19:52:12
Message-ID: 20150316195212.379B9AC02F5 () hades ! apache ! org
[Download RAW message or body]
Author: mrglavas
Date: Mon Mar 16 19:52:11 2015
New Revision: 1667115
URL: http://svn.apache.org/r1667115
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/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apac \
he/xerces/jaxp/validation/StAXValidatorHelper.java?rev=1667115&r1=1667114&r2=1667115&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java \
(original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/jaxp/validation/StAXValidatorHelper.java \
Mon Mar 16 19:52:11 2015 @@ -362,7 +362,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: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic