Project

Profile

Help

Bug #5587

closed

Dynamic calls on integrated extension functions with multiple arity

Added by Michael Kay almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2022-07-04
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
11, trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

When an extension function (implementing the interface ExtensionFunctionDefinition) allows multiple arities (minimum number of arguments != maximum number of arguments), dynamic function calls on the function fail. This applies both to static lookup of the function (my:func#2) and to dynamic lookup (function-lookup(QName($ns, 'func'), 2)).

Reported at https://saxonica.plan.io/boards/3/topics/8869.

Unit tests added to TestIntegratedFunctions.java, initially on the 12.x branch.

Please register to edit this issue

Also available in: Atom PDF