|
Extension functions: array conversion bug: msg#00100text.xml.saxon.help
Mike, Here is a small bug in the way arrays are converted when calling extension functions: Error in call to extension function {public static java.lang.String[] nux.xom.xquery.XQueryUtil.foo(java.lang.String,java.lang.String [],boolean)}: Cannot convert supplied argument value to the required type It works for sequences (i.e. arrays) of length > 1 or length == 0 but not for arrays of length == 1. Here is a snipped to reproduce: declare namespace util = "java:nux.xom.xquery.XQueryUtil"; util:foo(".", ("xx","yy"), true() ) (: works fine :) util:foo(".", (), true() ) (: works fine :) util:foo(".", ("xx"), true() ) (: bug :) public static String[] foo(String baz, String[] args, boolean bar) { return args; } ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | RE: Template recursion, StackOverflowError, saxon:while a nd variable assignability: 00100, Michael Kay |
|---|---|
| Next by Date: | Re: Template recursion, StackOverflowError, saxon:while a nd variable assignability: 00100, Dimitre Novatchev |
| Previous by Thread: | distinct-values( ) appears to return empty for any sequence of nodes.i: 00100, Benjamin Jones |
| Next by Thread: | RE: Extension functions: array conversion bug: 00100, Michael Kay |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |