Project

Profile

Help

Bug #2824

closed

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

Added by O'Neil Delpratt almost 6 years ago. Updated almost 5 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)

Actions #1

Updated by O'Neil Delpratt almost 6 years ago

  • Category set to Internals
  • Status changed from New to Resolved
  • % Done changed from 0 to 100
  • Applies to branch 9.6 added
  • Fix Committed on Branch 9.6, 9.7, 9.8 added

Bug fixed in the Tokenizer class. Check added to check offset of closing brace.

Actions #2

Updated by O'Neil Delpratt almost 6 years ago

  • Fixed in Maintenance Release 9.7.0.7 added

Bug fix applied in the Saxon 9.7.0.7 maintenance release.

Actions #3

Updated by O'Neil Delpratt over 5 years ago

  • Status changed from Resolved to Closed
  • Fixed in Maintenance Release 9.6.0.10 added

Bug fix applied on the Saxon 9.6.0.10 maintenance release.

Actions #4

Updated by O'Neil Delpratt almost 5 years ago

  • Applies to branch trunk added
  • Applies to branch deleted (9.8)
Actions #5

Updated by O'Neil Delpratt almost 5 years ago

  • Fix Committed on Branch trunk added
  • Fix Committed on Branch deleted (9.8)

Please register to edit this issue

Also available in: Atom PDF