8319413: Start of release updates for JDK 23

8319414: Add SourceVersion.RELEASE_23
8319416: Add source 23 and target 23 to javac

Reviewed-by: iris, erikj, alanb, vromero
This commit is contained in:
Joe Darcy 2023-12-07 17:01:29 +00:00 committed by Jesper Wilhelmsson
parent 86f9b3f52a
commit 519ecd352a
98 changed files with 4872 additions and 44 deletions

View file

@ -1475,6 +1475,9 @@ public sealed interface ClassFile
/** The class major version of JAVA_22. */
int JAVA_22_VERSION = 66;
/** 67 */
int JAVA_23_VERSION = 67;
/**
* A minor version number indicating a class uses preview features
* of a Java SE version since 12, for major versions {@value
@ -1486,7 +1489,7 @@ public sealed interface ClassFile
* {@return the latest major Java version}
*/
static int latestMajorVersion() {
return JAVA_22_VERSION;
return JAVA_23_VERSION;
}
/**

View file

@ -294,6 +294,18 @@ public enum ClassFileFormatVersion {
* <cite>The Java Virtual Machine Specification, Java SE 22 Edition</cite></a>
*/
RELEASE_22(66),
/**
* The version introduced by the Java Platform, Standard Edition
* 23.
*
* @since 23
*
* @see <a
* href="https://docs.oracle.com/javase/specs/jvms/se23/html/index.html">
* <cite>The Java Virtual Machine Specification, Java SE 23 Edition</cite></a>
*/
RELEASE_23(67),
; // Reduce code churn when appending new constants
// Note to maintainers: when adding constants for newer releases,
@ -309,7 +321,7 @@ public enum ClassFileFormatVersion {
* {@return the latest class file format version}
*/
public static ClassFileFormatVersion latest() {
return RELEASE_22;
return RELEASE_23;
}
/**