mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8306584: Start of release updates for JDK 22
8306585: Add SourceVersion.RELEASE_22 8306586: Add source 22 and target 22 to javac Reviewed-by: erikj, iris, dholmes, jlahoda, alanb
This commit is contained in:
parent
bb377b2673
commit
5a706fb403
69 changed files with 5954 additions and 52 deletions
|
@ -281,7 +281,20 @@ public enum ClassFileFormatVersion {
|
|||
* href="https://docs.oracle.com/javase/specs/jvms/se21/html/index.html">
|
||||
* <cite>The Java Virtual Machine Specification, Java SE 21 Edition</cite></a>
|
||||
*/
|
||||
RELEASE_21(65);
|
||||
RELEASE_21(65),
|
||||
|
||||
/**
|
||||
* The version introduced by the Java Platform, Standard Edition
|
||||
* 22.
|
||||
*
|
||||
* @since 22
|
||||
*
|
||||
* @see <a
|
||||
* href="https://docs.oracle.com/javase/specs/jvms/se22/html/index.html">
|
||||
* <cite>The Java Virtual Machine Specification, Java SE 22 Edition</cite></a>
|
||||
*/
|
||||
RELEASE_22(66),
|
||||
; // Reduce code churn when appending new constants
|
||||
|
||||
// Note to maintainers: when adding constants for newer releases,
|
||||
// the implementation of latest() must be updated too.
|
||||
|
@ -296,7 +309,7 @@ public enum ClassFileFormatVersion {
|
|||
* {@return the latest class file format version}
|
||||
*/
|
||||
public static ClassFileFormatVersion latest() {
|
||||
return RELEASE_21;
|
||||
return RELEASE_22;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue