Bug #2213
closedComparing QName to untypedAtomic crashes
0%
Description
According to the XPath 3.0 specification, given the expression ($p = $q) where $p is untypedAtomic and $q is a QName, the comparison should be done after casting $p to a QName using the namespaces present in the static context. Instead, Saxon crashes:
java.lang.UnsupportedOperationException: Cannot validate a QName without a namespace resolver
See QT3 test case -s:prod-GeneralComp.eq -t:GenCompEq-22 (contributed by Saxonica)
Related issues
Updated by Michael Kay about 10 years ago
- Status changed from New to In Progress
A complete fix has been made on the 9.7 branch; this involves saving the namespace context for every general comparison, which is expensive. For 9.6 a partial fix is being committed for now as a patch; the effect of the fix is to make this situation a dynamic error rather than a crash.
Updated by O'Neil Delpratt almost 10 years ago
- Status changed from In Progress to Resolved
- Fixed in version set to 9.6.0.3
Bug fix committed the Saxon maintenance release 9.6.0.2. We don't intend to provide a complete solution in the 9.6 branch.
Updated by O'Neil Delpratt almost 10 years ago
- Fixed in version changed from 9.6.0.3 to 9.6.0.2
Updated by O'Neil Delpratt almost 10 years ago
- Status changed from Resolved to Closed
Updated by O'Neil Delpratt about 9 years ago
- Sprint/Milestone set to 9.6.0.2
- Applies to branch 9.6 added
- Fix Committed on Branch 9.6 added
- Fixed in Maintenance Release 9.6.0.2 added
Please register to edit this issue