8342979: Start of release updates for JDK 25

8342982: Add SourceVersion.RELEASE_25
8342983: Add source 25 and target 25 to javac

Co-authored-by: Joe Darcy <darcy@openjdk.org>
Reviewed-by: iris, darcy, erikj, dholmes
This commit is contained in:
Pavel Rappo 2024-12-05 17:03:27 +00:00
parent 85fedbf668
commit 5cc150c636
98 changed files with 6173 additions and 49 deletions

View file

@ -641,6 +641,12 @@ public sealed interface ClassFile
/** The class major version of JAVA_24. */
int JAVA_24_VERSION = 68;
/**
* The class major version of JAVA_25.
* @since 25
*/
int JAVA_25_VERSION = 69;
/**
* A minor version number indicating a class uses preview features
* of a Java SE version since 12, for major versions {@value
@ -652,7 +658,7 @@ public sealed interface ClassFile
* {@return the latest major Java version}
*/
static int latestMajorVersion() {
return JAVA_24_VERSION;
return JAVA_25_VERSION;
}
/**