Project

Profile

Help

Bug #2824

closed

StringIndexOutOfBoundsException: String index out of range: -3 exception thrown

Added by O'Neil Delpratt almost 8 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Category:
Internals
Sprint/Milestone:
-
Start date:
2016-07-05
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.6, 9.7, trunk
Fix Committed on Branch:
9.6, 9.7, trunk
Fixed in Maintenance Release:
Platforms:

Description

The following QT3 test case @eqname-907@:

Q{http://www.w3.org/2005/xpath-functions/math pi()

Which tests incorrect syntax in EQName throws the following exception:

java.lang.StringIndexOutOfBoundsException: String index out of range: -3
	at java.lang.String.substring(String.java:1937)
	at net.sf.saxon.expr.parser.Tokenizer.lookAhead(Tokenizer.java:840)
	at net.sf.saxon.expr.parser.Tokenizer.tokenize(Tokenizer.java:204)
	at net.sf.saxon.query.XQueryParser.parseQuery(XQueryParser.java:391)
	at net.sf.saxon.query.XQueryParser.makeXQueryExpression(XQueryParser.java:156)
	at net.sf.saxon.query.StaticQueryContext.compileQuery(StaticQueryContext.java:589)
	at net.sf.saxon.s9api.XQueryCompiler.compile(XQueryCompiler.java:556)

Please register to edit this issue

Also available in: Atom PDF