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: Closed
  • Resolution: Won't Fix
  • Submitted: 2024-10-14
  • Updated: 2025-04-24
  • Resolved: 2025-04-24
Related Reports
CSR :  
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
No longer pursuing this change.
24-04-2025

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