Project

Profile

Help

Bug #3818

closed

Reflexive java functions vs byte arrays

Added by Philipp Nanz almost 6 years ago. Updated almost 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
Start date:
2018-06-12
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.8, trunk
Fix Committed on Branch:
9.8, trunk
Fixed in Maintenance Release:
Platforms:

Description

Hello there,

I have run into a problem that I believe might be a problem in Saxon 9.8.

The problem occurs with calling reflexive Java functions that return byte[] and get passed a byte[]. With Bug #3525, the behaviour seems to have changed in such a way that reflexive Java functions that return a byte[] are treated as xs:unsignedByte*. However when a byte array is passed to such a function, it still requires xs:byte* which causes a compiler error.

Moreover I couldn't find a way to convert the xs:unsignedByte to xs:byte. When doing so in a loop, I receive weird other messages (something with java.util.Random), I haven't looked into this any further though because it's pobably not such a great idea to do this conversion the hard way in a loop.

Please see attached example. The code is running without issues in Saxon PE 9.6 and 9.7.

Thanks in advance for your time!

Kind regards,

Philipp Nanz


Files

byte-array-bug.zip (1.09 KB) byte-array-bug.zip Philipp Nanz, 2018-06-12 16:24

Related issues

Related to Saxon - Bug #3525: Reflexive extension function returning byte[]ClosedMichael Kay2017-11-14

Actions

Please register to edit this issue

Also available in: Atom PDF