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 APIUtil.apiGetManifestValue() for GraalVM native image build #644

Closed
wants to merge 1 commit into from
Closed

fix APIUtil.apiGetManifestValue() for GraalVM native image build #644

wants to merge 1 commit into from

Commits on Apr 10, 2021

  1. fix APIUtil.apiGetManifestValue() for GraalVM native image build

    The APIUtil.apiGetManifestValue() method doesn't work in a native image
    generated by GraalVM, as ClassLoader.getResource() doesn't return a URL
    starting with "jar:" as expected when running in standard JVM
    environment. Instead, in native image which is run by an embedded
    SubstrateVM, ClassLoader.getResource() returns a URL starting with
    "resource:", for all resources in the classpath.
    
    This fix would make APIUtil.apiGetManifestValue() work in both standard
    JVM as well as in native image generated by GraalVM.
    chirontt committed Apr 10, 2021
    Configuration menu
    Copy the full SHA
    735eb70 View commit details
    Browse the repository at this point in the history