8330182: Start of release updates for JDK 24

8330183: Add SourceVersion.RELEASE_24
8330184: Add source 24 and target 24 to javac

Reviewed-by: iris, vromero, asotona, dholmes
This commit is contained in:
Joe Darcy 2024-06-06 16:01:57 +00:00 committed by Jesper Wilhelmsson
parent 054362abe0
commit 75dc2f8518
50 changed files with 2076 additions and 64 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2012, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2012, 2024, 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
@ -23,7 +23,7 @@
/*
* @test
* @bug 7157626 8001112 8188870 8173382 8193290 8205619 8245586 8257453 8306586
* @bug 7157626 8001112 8188870 8173382 8193290 8205619 8245586 8257453 8306586 8330184
* @summary Test major version for all legal combinations for -source and -target
* @author sgoel
*
@ -58,6 +58,7 @@ public class ClassVersionChecker {
TWENTY_ONE("21", 65),
TWENTY_TWO("22", 66),
TWENTY_THREE("23", 67),
TWENTY_FOUR("24", 68),
; // Reduce code churn when appending new constants
private Version(String release, int classFileVer) {