8273146: Start of release updates for JDK 19

8277511: Add SourceVersion.RELEASE_19
8277513: Add source 19 and target 19 to javac

Reviewed-by: dholmes, alanb, erikj, iris, mikael, ihse
This commit is contained in:
Joe Darcy 2021-12-09 17:01:59 +00:00 committed by Jesper Wilhelmsson
parent 6dae52f8e3
commit 09831e7aa4
67 changed files with 5872 additions and 46 deletions

View file

@ -71,9 +71,9 @@ public class Versions {
public static final Set<String> VALID_SOURCES =
Set.of("1.7", "1.8", "1.9", "1.10", "11", "12", "13", "14",
"15", "16", "17", "18");
"15", "16", "17", "18", "19");
public static final String LATEST_MAJOR_VERSION = "62.0";
public static final String LATEST_MAJOR_VERSION = "63.0";
static enum SourceTarget {
SEVEN(true, "51.0", "7", Versions::checksrc7),
@ -87,7 +87,8 @@ public class Versions {
FIFTEEN(false, "59.0", "15", Versions::checksrc15),
SIXTEEN(false, "60.0", "16", Versions::checksrc16),
SEVENTEEN(false, "61.0", "17", Versions::checksrc17),
EIGHTEEN(false, "62.0", "18", Versions::checksrc18);
EIGHTEEN(false, "62.0", "18", Versions::checksrc18),
NINETEEN(false, "63.0", "19", Versions::checksrc19);
private final boolean dotOne;
private final String classFileVer;
@ -320,6 +321,13 @@ public class Versions {
// Add expectedFail after new language features added in a later release.
}
protected void checksrc19(List<String> args) {
printargs("checksrc19", args);
expectedPass(args, List.of("New7.java", "New8.java", "New10.java", "New11.java",
"New14.java", "New15.java", "New16.java", "New17.java"));
// Add expectedFail after new language features added in a later release.
}
protected void expected(List<String> args, List<String> fileNames,
Consumer<List<String>> passOrFail) {
ArrayList<String> fullArguments = new ArrayList<>(args);