Skip to content

Commit 795e01d

Browse files
committed
squash! Run StandaloneTests for Java 8 under Java 8
To make tests executeOnJava8() and executeOnJava8SelectPackage() see the class files, update test compile() to use option `--release 8`. Because compiling to release 8 is deprecated, add a linter option to disable the warning to make compile() pass.
1 parent 2357c82 commit 795e01d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

platform-tooling-support-tests/src/test/java/platform/tooling/support/tests/StandaloneTests.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,8 @@ void compile() throws Exception {
8989
var result = Request.builder() //
9090
.setTool(new Javac()) //
9191
.setProject("standalone") //
92+
.addArguments("-Xlint:-options")
93+
.addArguments("--release", "8")
9294
.addArguments("-proc:none") //
9395
.addArguments("-d", workspace.resolve("bin")) //
9496
.addArguments("--class-path", MavenRepo.jar("junit-platform-console-standalone")) //

0 commit comments

Comments
 (0)