diff options
| author | Justin Lu <jlu@openjdk.org> | 2024-07-18 07:37:39 +0000 |
|---|---|---|
| committer | Christoph Langer <clanger@openjdk.org> | 2024-07-18 07:37:39 +0000 |
| commit | 2464d8c1c77153b7660a529020a61e97897750af (patch) | |
| tree | bf4f04d693ec23bb9398f2f82d158584a6de9a0b /src/java.base/share/classes/java/lang/System.java | |
| parent | 6a3107159b5b02751612cdd1d9a12aadedbd1d7e (diff) | |
| download | openjdk-2464d8c1c77153b7660a529020a61e97897750af.tar.gz openjdk-2464d8c1c77153b7660a529020a61e97897750af.zip | |
8285497: Add system property for Java SE specification maintenance version
Reviewed-by: lancea, andrew, iris
Backport-of: c2c9e7fb8c857e40bc43b4053c2633825d4fb68e
Diffstat (limited to 'src/java.base/share/classes/java/lang/System.java')
| -rw-r--r-- | src/java.base/share/classes/java/lang/System.java | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/java.base/share/classes/java/lang/System.java b/src/java.base/share/classes/java/lang/System.java index c77a626493f..d1c2b8c93cf 100644 --- a/src/java.base/share/classes/java/lang/System.java +++ b/src/java.base/share/classes/java/lang/System.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 1994, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -726,6 +726,9 @@ public final class System { * <td>Java Runtime Environment specification version, whose value is * the {@linkplain Runtime.Version#feature feature} element of the * {@linkplain Runtime#version() runtime version}</td></tr> + * <tr><th scope="row">{@systemProperty java.specification.maintenance.version}</th> + * <td>Java Runtime Environment specification maintenance version, + * may be interpreted as a positive integer <em>(optional, see below)</em></td></tr> * <tr><th scope="row">{@systemProperty java.specification.vendor}</th> * <td>Java Runtime Environment specification vendor</td></tr> * <tr><th scope="row">{@systemProperty java.specification.name}</th> @@ -765,6 +768,16 @@ public final class System { * </tbody> * </table> * <p> + * The {@code java.specification.maintenance.version} property is + * defined if the specification implemented by this runtime at the + * time of its construction had undergone a <a + * href="https://jcp.org/en/procedures/jcp2#3.6.4">maintenance + * release</a>. When defined, its value identifies that + * maintenance release. To indicate the first maintenance release + * this property will have the value {@code "1"}, to indicate the + * second maintenance release this property will have the value + * {@code "2"}, and so on. + * <p> * Multiple paths in a system property value are separated by the path * separator character of the platform. * <p> |
