Menu

#412 ArrayIndexOOB with long first query line

v8.5.1
closed
5
2012-10-08
2005-10-19
Michael Kay
No

If the first line of an XQuery query exceeds 100
characters, or contains an unbroken string of more than
100 characters with no intervening whitespace, an
ArrayIndexOutOfBounds exception occurs.

(This is happening while Saxon's pre-scanner searches
for the XQuery encoding declaration, which needs to be
located before parsing proper can start.)

Circumvention: include some whitespace in the first 100
characters of the query.

Michael Kay
http://www.saxonica.com/

Discussion