Project

Profile

Help

ArrayIndexOutOfBoundsException: -999

Added by Anonymous almost 19 years ago

Legacy ID: #3279541 Legacy Poster: marcvc (marcvc)

Michael, with Saxon8.5 the following query results in an ArrayIndexOutOfBoundsException. At least in this example, the usage of the user defined function seems relevant. declare function local:foo() { for $a in (1,2) where some $b in () satisfies $b order by $a return $a }; local:foo() Thanks, Marc


Replies (1)

RE: ArrayIndexOutOfBoundsException: -999 - Added by Anonymous almost 19 years ago

Legacy ID: #3279817 Legacy Poster: Michael Kay (mhkay)

This is another very artificial problem where the optimizer has reduced the FLWOR expression to an empty sequence at compile time; the problem is that it hasn't removed the dependency on the variable $a, so when lazy evaluation takes place it tries to save the value of $a but this has no slot allocated for it. There is a source fix at: https://sourceforge.net/tracker/index.php?func=detail&aid=1251824&group_id=29872&atid=397617 MK

    (1-1/1)

    Please register to reply