Bug #2183
closedBytecode generation: xs:string returns "" instead of ()
100%
Description
The generated bytecode for an expression such as xs:string(/a/b/c) returns a zero length string instead of an empty sequence when the supplied node-set is empty.
The problem is present in 9.6 and earlier releases.
I have written a number of new W3C QT3 test cases for value comparisons; the problem is revealed by test case value-comp-eq-string-4
Updated by Michael Kay about 10 years ago
- Status changed from New to Resolved
I have fixed this on the 9.5, 9.6, and 9.7 branches by a patch to AnyTypeToStringConverterCompiler.java
Updated by Michael Kay about 10 years ago
Turns out the first patch solves the problem on the "compileToPrimitive" path but not on the "compileToItem" path in AnyTypeToStringConverterCompiler. The problem is revealed by the same test, run with option -unfolded. An additional patch is being applied to the same class.
Updated by O'Neil Delpratt about 10 years ago
Bug fix applied to the Saxon 9.5.1.8 maintenance release.
Saxon 9.6 maintenance release pending
Updated by O'Neil Delpratt about 10 years ago
- Status changed from Resolved to Closed
- % Done changed from 0 to 100
- Fixed in version set to 9.6.0.2
Bug fix applied to the maintenance release Saxon 9.6.0.2
Updated by O'Neil Delpratt almost 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