Project

Profile

Help

Bug #3388

closed

Conversion of first argument of call to instance-level external method

Added by Michael Kay over 7 years ago. Updated over 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2017-08-13
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8
Fix Committed on Branch:
9.8
Fixed in Maintenance Release:
Platforms:

Description

See https://saxonica.plan.io/boards/2/topics/6918

The conversion of "ordinary" arguments of reflexive Java extension functions is designed to follow the XPath function conversion rules as closely as possible, with a declared argument type of java.lang.String (say) being treated in the same way as a call to an XPath function with the nearest equivalent XPath type (xs:string?). But this doesn't apply to the first argument, which maps to the object whose method is being invoked. For example, if invoking a non-static method on java.lang.String, atomization is not applied to the supplied value -- instead, if a text node is supplied, it results in a message saying that conversion from text nodes to java.lang.String is not supported.

Please register to edit this issue

Also available in: Atom PDF