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

@ -318,6 +318,18 @@ public enum ClassFileFormatVersion {
* <cite>The Java Virtual Machine Specification, Java SE 24 Edition</cite></a>
*/
RELEASE_24(68),
/**
* The version introduced by the Java Platform, Standard Edition
* 25.
*
* @since 25
*
* @see <a
* href="https://docs.oracle.com/javase/specs/jvms/se25/html/index.html">
* <cite>The Java Virtual Machine Specification, Java SE 25 Edition</cite></a>
*/
RELEASE_25(69),
; // Reduce code churn when appending new constants
// Note to maintainers: when adding constants for newer releases,
@ -333,7 +345,7 @@ public enum ClassFileFormatVersion {
* {@return the latest class file format version}
*/
public static ClassFileFormatVersion latest() {
return RELEASE_24;
return RELEASE_25;
}
/**