Menu

#121 ClassCastEx comparing string and integer

v7.4
closed
5
2014-08-22
2003-02-20
Michael Kay
No

A ClassCastException occurs when comparing two types
that are not comparable according the the XPath
specification, using an operator such as "=". For
example, when comparing string and integer.

(Note, this comparison should be allowed in XPath
backwards compatibility mode, but it isn't allowed in
Saxon 7.4)

test case added: error232

Discussion