Project

Profile

Help

A minor XQuery compiler bug in Saxon 9.5.0.2

Added by Nikolay Ognyanov about 11 years ago

The XQuery compiler accepts a comma after the last parameter in function declarations. Here is an example which compiles and runs under Saxon-PE 9.5.0.2 :

xquery version "1.0";

declare function local:foo($a,)
{
    $a
};

local:foo(1)

The parameter list is defined as

ParamList ::= Param ("," Param)*

So this is clearly a bug albeit a minor one.


Replies (2)

RE: A minor XQuery compiler bug in Saxon 9.5.0.2 - Added by Michael Kay about 11 years ago

Thanks for reporting it. I have logged it here

https://saxonica.plan.io/issues/1838

and have committed a fix.

RE: A minor XQuery compiler bug in Saxon 9.5.0.2 - Added by Nikolay Ognyanov about 11 years ago

Thank you. I noticed today that I can file bugs myself and will do that if/when the need be.

    (1-2/2)

    Please register to reply