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

Fix exception when running jlink image with JDK13+ #375

Merged
merged 2 commits into from
Dec 24, 2019

Conversation

HGuillemet
Copy link
Contributor

JavaCPP had a workround for openjdk bug 8216553.
The bug seems now fixed (in JDK 13.0.1), but not the way it was expected in the workaround. Running from a jlink image built with newer JDK causes exceptions like :

java.lang.ClassCastException: class jdk.internal.jimage.ImageReader$Resource cannot be cast to class jdk.internal.jimage.ImageReader$Directory

This PR should make things work in both JDK 12- and JDK13+.

@saudet saudet merged commit 40d11bb into bytedeco:master Dec 24, 2019
@HGuillemet HGuillemet deleted the hg_fix_jrt_bug_workaround branch December 24, 2019 12:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants