Separate java.vendor and java.vm.vendor #5041
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Separate
java.vendor
andjava.vm.vendor
Removed the setting of
java.vm.vendor
withjava.vm
value;Added
JAVA_VM_VENDOR
to be set forjava.vm.vendor
regardless ofjava.vendor
values.Additional notes:
JDK12+
, it can be built with--with-vendor-name
and--with-vendor-url
, and the values specified will be set tojava.vendor
andjava.vendor.url
viajava.lang.VersionProps.init(systemProperties)
;JDK8 & 11
, change to following defines are required:https://github.com/eclipse/openj9/blob/0bd089b36679fe0e3c5bfd63df0fcfc22c16c36d/runtime/include/vendor_version.h#L57-L58
just like AdoptOpenJDK patch;
--with-vendor-name
for JDK 8 & 11 builds (particularly for JDK 11), it requires passing the value toclosed/OpenJ9.gmk
and toinclude/j9cfg.h.ftl
viauma.spec.properties
which requires more changes for legacy builds without incoming makefile options.JDK12+
provides a generic way to set a customizedjava.vendor
and it doesn't seem worth to duplicate the effort for earlier versions;java.vendor.url.bug
was set byRI
but notOpenJ9
, not adding it in this PR.closes: #5002
Reviewer: @pshipton
FYI: @DanHeidinga @smlambert
Signed-off-by: Jason Feng fengj@ca.ibm.com