Actions
Bug #5590
closedClassCastException (variable declaration with context item reference)
Start date:
2022-07-05
Due date:
% Done:
0%
Estimated time:
Legacy ID:
Applies to branch:
10
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:
Description
declare context item := 'x';
declare variable $a := .;
1[$a]
… ends up in a Java exception:
java.lang.ClassCastException: class net.sf.saxon.value.StringValue cannot be cast to class net.sf.saxon.value.NumericValue (net.sf.saxon.value.StringValue and net.sf.saxon.value.NumericValue are in unnamed module of loader 'app')
at net.sf.saxon.expr.SubscriptExpression.evaluateItem(SubscriptExpression.java:151)
at net.sf.saxon.expr.Expression.process(Expression.java:940)
at com.saxonica.ee.bytecode.ByteCodeCandidate.process(ByteCodeCandidate.java:146)
...
Related issues
Please register to edit this issue
Actions