Skip to content

Conversation

@graalvmbot
Copy link
Collaborator

This PR lets Native Image inherit the vendor version from the host VM (unless org.graalvm.vendorversion is set). The full vendor version of a GraalVM CE host VM indicates whether a build is a dev build (optional -dev infix) and includes a GraalVM-specific build number (.1 suffix). This vendor version is displayed as part of the version string of Native Image:

$ native-image --version
native-image 20 2023-03-21
GraalVM Runtime Environment GraalVM CE 20-dev+34.1 (build 20+34-jvmci-23.0-b10)
Substrate VM GraalVM CE 20-dev+34.1 (build 20+34, serial gc)

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Apr 6, 2023
Copy link
Collaborator

@jerboaa jerboaa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine. Thanks for the quick fix.

This fixes Version.getCurrent() invocations for builds, not modifying
the base JDK.

Closes: #6379
@fniephaus
Copy link
Member

Thanks, @jerboaa. I noticed that the proposed behavior is slightly different to what it was before, so I restored the original behavior (default to dev, unconditionally forwarding the property).

@graalvmbot graalvmbot force-pushed the fniephaus/GR-44722/inherit-vendor-version branch from e0ce636 to a4f0786 Compare April 6, 2023 16:33
@fniephaus fniephaus linked an issue Apr 6, 2023 that may be closed by this pull request
@graalvmbot graalvmbot merged commit 9b42ff9 into master Apr 6, 2023
@graalvmbot graalvmbot deleted the fniephaus/GR-44722/inherit-vendor-version branch April 6, 2023 22:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

OCA Verified All contributors have signed the Oracle Contributor Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version.getCurrent() broken for distributions not modifying the base JDK

3 participants