这个异常是由显式类型转换抛出的,因为测试用例试图把类型为 String 的东西转换成 Integer。
The exception is thrown by the explicit cast because the test case is trying to convert something of type String to an Integer.
原来的查询比较一个字符串和一个数字,但是在修改后的查询中执行了显式的类型转换。
Here the original query is comparing a string to a number but in the modified query, explicit type-casting has been done.
提供了完整的函数集,因此可以把这些值显式地从一种类型转换为另一种类型,将这种转换作为它们在XPath 2.0中操作的一部分。
A full set of functions is provided so you can explicitly convert these values from one type to another as part of their manipulation in XPath 2.0.
应用推荐