In OpenSCDP we use a lot of binary data and the Global Platform Scripting Spec that we implement
has a dedicated ByteString and ByteBuffer host class.
In our embedding we use a custom WrapFactory that converts a byte[] returned from native
Java invocations into ByteString instances:
>var bs = java.lang.reflect.Array.newInstance(java.lang.Byte.TYPE, 10);
>bs instanceof ByteString
true
With 1.9 this stops working, as WrapFactory.wrap() is no longer called for byte[] objects. Instead this version seems to generate NativeJavaArray objects.
Before we rewrite the host objects to support NativeJavaArray, I want to make sure that there is no other way to restore the previous logic.