Skip to content

Custom WrapFactory to handle byte[] no longer working in 1.9.0 #2265

@CardContact

Description

@CardContact

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions