Skip to content

Java 24 / JDK 24: General Availability #96

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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` |
Expand All @@ -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.
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 4 additions & 4 deletions src/ListOpenJavaDevelopmentKits.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
1 change: 1 addition & 0 deletions test/Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down