JDK-8342035 : jlink plugins for setting java.vendor, java.vm.vendor and java.vendor.url
  • Type: Enhancement
  • Component: tools
  • Sub-Component: jlink
  • Priority: P4
  • Status: In Progress
  • Resolution: Unresolved
  • Submitted: 2024-10-14
  • Updated: 2024-11-15
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24Unresolved
Related Reports
Relates :  
Description
The jlink tool can be used to create a custom run-time image that behaves substantially different to the base JDK, e.g., by adding and enabling a custom JIT compiler via JVMCI. The resulting image should be customizable to reflect this, e.g., to allow proper feature detection by user code.

While jlink allows certain system properties to be overridden, it does not allow setting java.vendor, java.vendor.url, java.vm.vendor. The only way to set these values currently is at JDK configure time[1].

JDK-8232080 added a jlink plugin to customize properties such as java.vendor.url.bug and java.vendor.version. This functionality could be extended to also cover java.vendor, java.vm.vendor and java.vendor.url.

[1] https://github.com/openjdk/jdk/blob/master/make/autoconf/jdk-version.m4#L101-L130
Comments
A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/21964 Date: 2024-11-07 21:38:28 +0000
07-11-2024

java.vendor and java.vendor.url is relative easy to change. However, java.vm.vendor is set very early stage when JVM started, before any Java class to be loaded. I have a prototype allows to change java.vendor and java.vendor.url, still need to find a feasible way to change java.vm.vendor.
02-11-2024