changeset 854:fa4bc4681f57

8015092: SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression Reviewed-by: lancea, alanb
author joehw
date Tue, 15 Oct 2013 12:34:04 -0700
parents 5ea5b94af7d7
children 0115f26bcecd
files src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java	Mon Oct 14 16:26:33 2013 -0700
+++ b/src/com/sun/org/apache/xerces/internal/impl/xpath/XPath.java	Tue Oct 15 12:34:04 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;