Skip to content

Commit

Permalink
[javac] some differences ecj <-> javac regarding 'recent' features (#…
Browse files Browse the repository at this point in the history
…2960)

+ fix arguments of javac invocations
+ remove a forgotten test filter

relates to #2959
  • Loading branch information
stephan-herrmann authored Sep 24, 2024
1 parent f4263e4 commit 1625df4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,15 +715,15 @@ boolean skip(JavacCompiler compiler) {
static JavacTestOptions forRelease(String release) {
JavacTestOptions options = new JavacTestOptions(Long.parseLong(release));
if (isJRE9Plus)
options.setCompilerOptions("-release "+release);
options.setCompilerOptions("--release "+release);
else
options.setCompilerOptions("-source 1."+release+" -target 1."+release);
options.setCompilerOptions("--source 1."+release+" --target 1."+release);
return options;
}
@java.lang.SuppressWarnings("synthetic-access")
static JavacTestOptions forRelease(String release, String additionalOptions) {
JavacTestOptions options = new JavacTestOptions(Long.parseLong(release));
String result = isJRE9Plus ? "-release "+release : "-source 1."+release+" -target 1."+release;
String result = isJRE9Plus ? "--release "+release : "--source 1."+release+" --target 1."+release;
if (additionalOptions != null)
result = result + " " + additionalOptions;
options.setCompilerOptions(result);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
public class ArrayTest extends AbstractRegressionTest {

static {
TESTS_NUMBERS = new int[] { 1 };
// TESTS_NUMBERS = new int[] { 1 };
}
public ArrayTest(String name) {
super(name);
Expand Down

0 comments on commit 1625df4

Please sign in to comment.