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

@ -609,7 +609,7 @@ public class SourceLauncherTest extends TestRunner {
public void testNoOptionsWarnings(Path base) throws IOException {
tb.writeJavaFiles(base, "public class Main { public static void main(String... args) {}}");
String log = new JavaTask(tb)
.vmOptions("--source", "7")
.vmOptions("--source", "8")
.className(base.resolve("Main.java").toString())
.run(Task.Expect.SUCCESS)
.getOutput(Task.OutputKind.STDERR);