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

@ -57,18 +57,9 @@ public class LegacyOutputTest {
}
void test() throws Exception {
release7();
release8();
}
void release7() throws Exception {
List<String> names = getParameterNames("7");
if (names != null) {
throw new AssertionError(
"expected no MethodParameters for --release 7, actual: " + names);
}
}
void release8() throws Exception {
List<String> names = getParameterNames("8");
List<String> expected = Arrays.asList("x", "y");