8015092: SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression
Reviewed-by: lancea, alanb
--- 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;