Signed byte of value 255?
Replies (2)
Please register to reply
Added by T Hata about 7 years ago
Code:
Output:
Saxon-EE 9.8.0.6J from Saxonica
Java version 1.8.0_151
...
Looks confusing...
Yes, I'm confused too. This is one of the older Saxon extension functions and it is implemented as a reflexive function returning a Java byte[] array. There's a bit of a history of problems with Java->XPath conversion of byte arrays. It looks at first glance as if the run-time semantics is unsigned byte, but the static type inferencing is assuming signed byte; the solution is probably to change the static semantics to match the dynamic.
This will be followed up here:
Please register to reply