#1176 Cannot cast CompiledExpression to VariableReference

v9.4
closed
Michael Kay
5
2012-10-08
2011-12-20
Michael Kay
No

When using byte code generation, if the body of a function consists in its entirety of a variable reference (or in XSLT, an xsl:sequence instruction whose select expression is a variable reference), then at run-time a ClassCastException may occur with the message "cannot cast CompiledExpression to VariableReference".

The bug causes QT3 test map-006 to crash.

A patch is being placed in Subversion (module XQueryFunction).

Discussion

  • Michael Kay
    Michael Kay
    2012-01-23

    Fixed in 9.4.0.2