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:
Joe Darcy 2023-06-08 16:02:21 +00:00 committed by Jesper Wilhelmsson
parent bb377b2673
commit 5a706fb403
69 changed files with 5954 additions and 52 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@ -55,7 +55,9 @@ public class ClassVersionChecker {
EIGHTEEN("18", 62),
NINETEEN("19", 63),
TWENTY("20", 64),
TWENTY_ONE("21", 65);
TWENTY_ONE("21", 65),
TWENTY_TWO("22", 66),
; // Reduce code churn when appending new constants
private Version(String release, int classFileVer) {
this.release = release;