8015092: SchemaFactory cannot parse schema if whitespace added within patterns in Selector XPath expression

Reviewed-by: lancea, alanb
This commit is contained in:
Joe Wang 2013-10-14 22:07:29 -07:00
parent a2bbd75cda
commit 75969430ac

View File

@ -1422,7 +1422,7 @@ public class XPath {
}
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;