Project

Profile

Help

Signed byte of value 255?

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...


Replies (2)

RE: Signed byte of value 255? - Added by Michael Kay about 7 years ago

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.

    (1-2/2)

    Please register to reply