From e3293ba8a2dddb0f15dd5f5e6b0cd7c5a8069d86 Mon Sep 17 00:00:00 2001 From: Peter Shipton Date: Tue, 6 Sep 2022 10:23:17 -0400 Subject: [PATCH] Add java.specification.maintenance.version=4 jdk8 system property As per the jdk8 JSR 337 Maintenance Release 4 spec https://jcp.org/aboutJava/communityprocess/maintenance/jsr337/jsr337-mr4-changes.html See also OpenJDK 8285497 https://github.com/ibmruntimes/openj9-openjdk-jdk8/commit/df84c26757ec70ef67fd94d1cfacd77f1b4c302f Signed-off-by: Peter Shipton --- runtime/vm/vmprops.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/runtime/vm/vmprops.c b/runtime/vm/vmprops.c index db2938c4d91..d753ad5f86c 100644 --- a/runtime/vm/vmprops.c +++ b/runtime/vm/vmprops.c @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 1991, 2021 IBM Corp. and others + * Copyright (c) 1991, 2022 IBM Corp. and others * * This program and the accompanying materials are made available under * the terms of the Eclipse Public License 2.0 which accompanies this @@ -628,6 +628,13 @@ initializeSystemProperties(J9JavaVM * vm) } #endif /* JAVA_SPEC_VERSION < 12 */ +#if JAVA_SPEC_VERSION == 8 + rc = addSystemProperty(vm, "java.specification.maintenance.version", "4", 0); + if (J9SYSPROP_ERROR_NONE != rc) { + goto fail; + } +#endif /* JAVA_SPEC_VERSION == 8 */ + rc = addSystemProperty(vm, "java.vm.vendor", JAVA_VM_VENDOR, 0); if (J9SYSPROP_ERROR_NONE != rc) { goto fail;