Skip to content

Commit

Permalink
Merge pull request #17470 from keithc-ca/java.specification.maintenan…
Browse files Browse the repository at this point in the history
…ce.version

Add/update java.specification.maintenance.version
  • Loading branch information
pshipton committed May 30, 2023
2 parents c7ac2f7 + 1ba89d7 commit 6aab183
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions runtime/vm/vmprops.c
Expand Up @@ -628,11 +628,18 @@ initializeSystemProperties(J9JavaVM * vm)
#endif /* JAVA_SPEC_VERSION < 12 */

#if JAVA_SPEC_VERSION == 8
rc = addSystemProperty(vm, "java.specification.maintenance.version", "4", 0);
#define JAVA_SPEC_MAINTENANCE_VERSION "5"
#elif JAVA_SPEC_VERSION == 11 /* JAVA_SPEC_VERSION == 8 */
#define JAVA_SPEC_MAINTENANCE_VERSION "2"
#endif /* JAVA_SPEC_VERSION == 8 */

#if defined(JAVA_SPEC_MAINTENANCE_VERSION)
rc = addSystemProperty(vm, "java.specification.maintenance.version", JAVA_SPEC_MAINTENANCE_VERSION, 0);
if (J9SYSPROP_ERROR_NONE != rc) {
goto fail;
}
#endif /* JAVA_SPEC_VERSION == 8 */
#undef JAVA_SPEC_MAINTENANCE_VERSION
#endif /* defined(JAVA_SPEC_MAINTENANCE_VERSION) */

rc = addSystemProperty(vm, "java.vm.vendor", JAVA_VM_VENDOR, 0);
if (J9SYSPROP_ERROR_NONE != rc) {
Expand Down

0 comments on commit 6aab183

Please sign in to comment.