Actions
Bug #3800
closed![Author: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=50&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
![Assignee: Michael Kay](https://www.gravatar.com/avatar/db6526d63053f09b62e52c2da8b2230a?rating=PG&size=22&default=https%3A%2F%2Fassets.plan.io%2Fimages%2Fdefault_avatar.png)
Expected external object of class java.net.URL, got class net.sf.saxon.value.AnyURIValue
Start date:
2018-05-30
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:
Description
See forum post https://saxonica.plan.io/boards/3/topics/7196
The issue here is that given an external Java call JarURLConnection::getURL() with a declared return type of java.net.URL, the default conversion would turn this into an xs:anyURI value. But because the result is bound to a variable with required type javatype:java.net.URL, the static type checking calls JavaExtensionFunctionCall.adjustRequiredType(), and this changes the conversion applied to the result value. However, adjustRequiredType is not called when the stylesheet is reloaded from a SEF file, and in fact the information required to do this is not present in the SEF file.
Please register to edit this issue
Actions