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/apache/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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to