-
Bug
-
Resolution: Fixed
-
P3
-
10
-
b25
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8226017 | 14 | Mark Reinhold | P3 | Resolved | Fixed | team |
The new Java 10 specification makes the 'java.vendor.version' property mandatory (http://cr.openjdk.java.net/~iris/se/10/pfd/java-se-10-pfd-spec/apidiffs/java/lang/System-report.html#method:getProperties()) but the current implementations doesn't allow to set it to an empty string.
Currently, if we don't configure the build with --with-vendor-version=XXX the 'java.vendor.version' property won't be set at all, which violates the spec. Setting it to an empty string will be ignored and has the same behavior like not setting it at all. This also makes default OpenJDK builds (which haven't been configured with --with-vendor-version) non-compliant.
The fix is trivial: unconditionally set the 'java.vendor.version' property to the value of VENDOR_VERSION_STRING in VersionProps.java.template, even if VENDOR_VERSION_STRING is the empty string (which is the default if --with-vendor-version wasn't given at config time).
Currently, if we don't configure the build with --with-vendor-version=XXX the 'java.vendor.version' property won't be set at all, which violates the spec. Setting it to an empty string will be ignored and has the same behavior like not setting it at all. This also makes default OpenJDK builds (which haven't been configured with --with-vendor-version) non-compliant.
The fix is trivial: unconditionally set the 'java.vendor.version' property to the value of VENDOR_VERSION_STRING in VersionProps.java.template, even if VENDOR_VERSION_STRING is the empty string (which is the default if --with-vendor-version wasn't given at config time).
- backported by
-
JDK-8226017 Allow the system property `java.vendor.version` to be undefined
- Resolved
- csr for
-
JDK-8225381 Allow the system property `java.vendor.version` to be undefined
- Closed
- relates to
-
JDK-8216383 Remove the system property "java.vendor.version"
- Closed
-
JDK-8241947 Minor comment fixes for system property handling
- Resolved