https://saxonica.plan.io/https://saxonica.plan.io/favicon.ico2020-12-04T15:49:01ZSaxonica Developer CommunitySaxon - Bug #4851: A compiled SEF package containing a CoercedFunction cannot be loaded by Saxon-PEhttps://saxonica.plan.io/issues/4851?journal_id=169632020-12-04T15:49:01ZMichael Kaymike@saxonica.com
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>In Progress</i></li></ul><p>I transferred the code handling coercedFn from PackageLoaderPE to PackageLoaderHE, but it fails with an AssertionError because the function being coerced is a map.</p>
<p>Fixed this by changing the test (still in PackageLoaderHE/"coercedFn") from <code>target instanceof FunctionLiteral</code> to <code>target instanceof Literal</code>.</p>
<p>It now gets further, but fails later on saying</p>
<pre><code>The items on the LHS of the '?' operator must be maps or arrays; but value (coerced map) was supplied. This is a user error; and it turns out that the original failure was triggered by the same user error, but I'm pretty sure it could also be triggered by correct code.
</code></pre> Saxon - Bug #4851: A compiled SEF package containing a CoercedFunction cannot be loaded by Saxon-PEhttps://saxonica.plan.io/issues/4851?journal_id=169642020-12-04T18:35:44ZMichael Kaymike@saxonica.com
<ul></ul><p>I'm confident that moving the existing code into Saxon-HE is the right solution, it's been tested in an ad-hoc way on the development branch, and I shall make the same fix on the 10.0 branch. The conditions that led to it are not easy to reproduce in a simple test case.</p> Saxon - Bug #4851: A compiled SEF package containing a CoercedFunction cannot be loaded by Saxon-PEhttps://saxonica.plan.io/issues/4851?journal_id=169652020-12-04T18:43:03ZMichael Kaymike@saxonica.com
<ul><li><strong>Status</strong> changed from <i>In Progress</i> to <i>Resolved</i></li><li><strong>Applies to branch</strong> <i>10, trunk</i> added</li><li><strong>Fix Committed on Branch</strong> <i>10, trunk</i> added</li></ul> Saxon - Bug #4851: A compiled SEF package containing a CoercedFunction cannot be loaded by Saxon-PEhttps://saxonica.plan.io/issues/4851?journal_id=178122021-04-14T15:49:48ZO'Neil Delprattoneil@saxonica.com
<ul><li><strong>Status</strong> changed from <i>Resolved</i> to <i>Closed</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li><li><strong>Fixed in Maintenance Release</strong> <i>10.5</i> added</li></ul><p>Bug fix applied to Saxon 10.5 maintenance release.</p>