8296149: Start of release updates for JDK 21

8296150: Add SourceVersion.RELEASE_21
8296151: Add source 21 and target 21 to javac

Reviewed-by: dholmes, iris, erikj, vromero, jlahoda
This commit is contained in:
Joe Darcy 2022-12-08 16:04:00 +00:00 committed by Jesper Wilhelmsson
parent d562d3fcbe
commit 175e3d3ff3
70 changed files with 5338 additions and 54 deletions

View file

@ -54,7 +54,8 @@ public class ClassVersionChecker {
SEVENTEEN("17", 61),
EIGHTEEN("18", 62),
NINETEEN("19", 63),
TWENTY("20", 64);
TWENTY("20", 64),
TWENTY_ONE("21", 65);
private Version(String release, int classFileVer) {
this.release = release;