|
RE: Extension functions: array conversion bug: msg#00135text.xml.saxon.help
Thanks, I've fixed this. Or at least, I think I have - it involved removing a check that was inserted to prevent an infinite recursion, but it looks OK and seems to get through all my test cases. Michael Kay http://www.saxonica.com/ > -----Original Message----- > From: saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx > [mailto:saxon-help-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx] > On Behalf Of > Wolfgang Hoschek > Sent: 17 June 2005 01:54 > To: saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx > Subject: [saxon] Extension functions: array conversion bug > > 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 > _______________________________________________ > saxon-help mailing list > saxon-help-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx > https://lists.sourceforge.net/lists/listinfo/saxon-help > ------------------------------------------------------- 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: 00135, Michael Kay |
|---|---|
| Next by Date: | Single Space Separator in xsl:attribute: 00135, Stefan Wachter |
| Previous by Thread: | Extension functions: array conversion bugi: 00135, Wolfgang Hoschek |
| Next by Thread: | #Document: 00135, ALEX HYDE |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |