8173605: Remove support for source and target 1.7 option in javac

Reviewed-by: vromero
This commit is contained in:
Joe Darcy 2022-09-01 16:43:50 +00:00
parent 7c2f2994da
commit 2d18dda3f2
156 changed files with 182 additions and 4570 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2014, 2021, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2014, 2022, 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
@ -67,16 +67,15 @@ public class Versions {
}
public static final Set<String> RETIRED_SOURCES =
Set.of("1.2", "1.3", "1.4", "1.5", "1.6");
Set.of("1.2", "1.3", "1.4", "1.5", "1.6", "1.7");
public static final Set<String> VALID_SOURCES =
Set.of("1.7", "1.8", "1.9", "1.10", "11", "12", "13", "14",
Set.of("1.8", "1.9", "1.10", "11", "12", "13", "14",
"15", "16", "17", "18", "19", "20");
public static final String LATEST_MAJOR_VERSION = "64.0";
static enum SourceTarget {
SEVEN(true, "51.0", "7", Versions::checksrc7),
EIGHT(true, "52.0", "8", Versions::checksrc8),
NINE(true, "53.0", "9", Versions::checksrc9),
TEN(true, "54.0", "10", Versions::checksrc10),
@ -245,12 +244,6 @@ public class Versions {
}
}
protected void checksrc7(List<String> args) {
printargs("checksrc7", args);
expectedPass(args, List.of("New7.java"));
expectedFail(args, List.of("New8.java"));
}
protected void checksrc8(List<String> args) {
printargs("checksrc8", args);
expectedPass(args, List.of("New7.java", "New8.java"));