Donate Share

Saxon XSLT and XQuery Processor

Tracker: Bugs

5 Crash in XPathEvaluator - ID: 721687
Last Update: Settings changed ( mhkay )

This bug affects applications using Saxon's XPath API only.

Saxon fails with a ClassCastException when using the
evaluate() method of the XPathEvaluator class. The
particular circumstance was a filter expression that
compared [@att=$var], but it could happen with any
expression, because the code for type checking and type
conversion (including atomization) is not being added
to the raw compiled expression.

Workaround: use

exp = xpp.createExpression("....");
result = exp.evaluate();

Source code fixed. Add the following to
XPathEvaluator#evaluate() (line 212)

exp = exp.typeCheck(staticContext);

Affects Saxon 7.x only.

Test case: users\filer\Tree.java


Michael Kay ( mhkay ) - 2003-04-15 09:10

5

Closed

Fixed

Michael Kay

Saxon extensions

v7.4

Public


Comments

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Changes ( 3 )

Field Old Value Date By
status_id Open 2003-06-27 18:58 mhkay
resolution_id None 2003-06-27 18:58 mhkay
close_date - 2003-06-27 18:58 mhkay