From 7a21af507ef0f62ec8613a2830ed6282c3d08d96 Mon Sep 17 00:00:00 2001 From: Christian Stein Date: Mon, 17 Mar 2025 15:54:20 +0100 Subject: [PATCH] Java 24 / JDK 24: General Availability Closes #95 --- README.md | 8 ++++---- action.yml | 4 ++-- src/ListOpenJavaDevelopmentKits.java | 8 ++++---- test/Test.java | 1 + 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index aedef18..25fc319 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,7 @@ JDKs built by Oracle are [Oracle JDK](https://www.oracle.com/java/technologies/d | Input Name | Default Value | Description | |-----------------------|--------------:|-----------------------------------------------------------------| | `website` | `oracle.com` | From where the JDK should be downloaded. | -| `release` | `23` | Java feature release number or name of an Early-Access project. | +| `release` | `24` | Java feature release number or name of an Early-Access project. | | `version` | `latest` | An explicit version of a Java release. | | `install` | `true` | Install the downloaded JDK archive file. | | `install-as-version` | _empty_ | Control the value passed as `java-version` | @@ -35,7 +35,7 @@ The following values are supported: ### Input `release` The `release` input denotes a Java feature release number (`21`, `22`, ...) or a name of an Early-Access project (`loom`, ...). -It defaults to the current General-Availability Release for the Java SE platform., which is `23` as of today. +It defaults to the current General-Availability Release for the Java SE platform., which is `24` as of today. Note that websites may offer a different set of available releases. For example, `oracle.com` only offers releases of `21` and above; it does not offer Early-Access releases. @@ -90,11 +90,11 @@ The following examples use the [JDK Script Friendly URLs](https://www.oracle.com ```yaml steps: - - name: 'Set up latest Oracle JDK 23' + - name: 'Set up latest Oracle JDK 24' uses: oracle-actions/setup-java@v1 with: website: oracle.com - release: 23 + release: 24 ``` ### Download and install a specific version of Oracle JDK diff --git a/action.yml b/action.yml index 8320260..aa7a04a 100644 --- a/action.yml +++ b/action.yml @@ -11,9 +11,9 @@ inputs: required: true default: 'oracle.com' release: - description: 'Feature release number or project name, defaults to `23`' + description: 'Feature release number or project name, defaults to `24`' required: true - default: '23' + default: '24' version: description: 'Additional version information, defaults to `latest`' required: true diff --git a/src/ListOpenJavaDevelopmentKits.java b/src/ListOpenJavaDevelopmentKits.java index fd634b2..448ed4c 100644 --- a/src/ListOpenJavaDevelopmentKits.java +++ b/src/ListOpenJavaDevelopmentKits.java @@ -40,19 +40,19 @@ class ListOpenJavaDevelopmentKits { /** Current General-Availability release number. */ - static final String GA = System.getProperty("GA", "23"); + static final String GA = System.getProperty("GA", "24"); /** Current Soon-Archived release number. */ - static final String SA = System.getProperty("SA", "22"); + static final String SA = System.getProperty("SA", "23"); /** Early-Access Releases, as comma separated names. */ - static final String EA = System.getProperty("EA", "25,24,jextract,leyden,loom,valhalla"); + static final String EA = System.getProperty("EA", "25,jextract,leyden,loom,valhalla"); /** Current "latest" Early-Access Release number. */ static final String EA_LATEST = System.getProperty("EA_LATEST", "25"); /** Current "stable" Early-Access Release number. */ - static final String EA_STABLE = System.getProperty("EA_STABLE", "24"); + static final String EA_STABLE = System.getProperty("EA_STABLE", "25"); /** Include archived releases flag. */ static final boolean ARCHIVES = Boolean.getBoolean("ARCHIVES"); diff --git a/test/Test.java b/test/Test.java index 7f04c91..d67596e 100644 --- a/test/Test.java +++ b/test/Test.java @@ -29,6 +29,7 @@ public static void main(String[] args) { static void checkAllOracleJDKs() { System.out.println(); System.out.println("// oracle.com - latest"); + checkOracleJDK("24", "latest"); checkOracleJDK("23", "latest"); checkOracleJDK("21", "latest");