Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support assembly with more modern Java versions #45

Open
dievsky opened this issue Apr 15, 2021 · 0 comments
Open

Support assembly with more modern Java versions #45

dievsky opened this issue Apr 15, 2021 · 0 comments
Assignees
Milestone

Comments

@dievsky
Copy link
Contributor

dievsky commented Apr 15, 2021

viktor can currently be assembled only with JDK 9 or earlier. That is because the JNI headers are generated using javah, which was removed in JDK 10. The headers are now supposed to be generated using javac -h, but this works only for Java source files, which we don't have, since our sources are in Kotlin. This is not optimal, since JDK 8 is fairly old.

Possible workarounds:

  1. use a third-party javah stand-in, like gjavah;
  2. use a javap workaround;
  3. rewrite native definitions in Java (currently NativeSpeedups.kt and parts of Loader.kt);
  4. wait until this issue is resolved by the Kotlin team.
@dievsky dievsky self-assigned this Apr 15, 2021
@dievsky dievsky added this to the 2.0.0 milestone Nov 4, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant