casting typed array to java byte is it possible?
pmartins at redhat.com
Thu Oct 11 18:21:31 UTC 2018
I'm trying to handle a case where a Uint8Array is being passed to a
method, that has the signature:
Sadly nashorn fails with:
java.lang.ClassCastException: Cannot cast
jdk.nashorn.internal.objects.NativeUint8Array to [B
And trying to help the cast with:
Does not help either. The documentation on typed arrays is quite scarce
so I cannot see how to handle this, does anyone have a clue?
More information about the nashorn-dev