Skip to content

TVM4J: sun.misc.SharedSecrets was removed with Java >= 9 #3301

Description

@t-vi

Hi!

Thank you for TVM.

I'm following the instructions for building tvm4j, but compilation fails with

[ERROR] tvm/jvm/core/src/main/java/ml/dmlc/tvm/rpc/Server.java:[20,16] cannot find symbol
[ERROR]   symbol:   class SharedSecrets
[ERROR]   location: package sun.misc

as far as I can tell, this function was made even more internal with Java 9+.
One solution - keeping Java 8 compat - seems to be to do to use reflection as in this example.

On stackoverflow there is a hacky solution accessing private members of the FileDescriptor.

Neither seems particularly attractive, but if you had a favourite...

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions