Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[javac] some differences ecj <-> javac regarding 'recent' features #2960

Merged
merged 1 commit into from
Sep 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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