8015092: SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression
authorjoehw
Mon, 14 Oct 2013 22:07:29 -0700
changeset 20962 30515654d2cc
parent 20961 c31821382b83
child 20976 bb128fd25c3c
8015092: SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression Reviewed-by: lancea, alanb
jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java
--- a/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java	Mon Oct 14 09:52:52 2013 -0700
+++ b/jaxp/src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java	Mon Oct 14 22:07:29 2013 -0700
@@ -1422,7 +1422,7 @@
                             }
                             ch = data.charAt(currentOffset);
                         } while (ch == ' ' || ch == 0x0A || ch == 0x09 || ch == 0x0D);
-                        if (currentOffset == endOffset || ch == '|') {
+                        if (currentOffset == endOffset || ch == '|' || ch == '/') {
                             addToken(tokens, XPath.Tokens.EXPRTOKEN_PERIOD);
                             starIsMultiplyOperator = true;
                             break;