Skip to content

Commit

Permalink
Run more tests with Java 23
Browse files Browse the repository at this point in the history
  • Loading branch information
akurtakov committed Jul 15, 2024
1 parent efeb2a7 commit b84c7a6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,19 @@ public static TestSuite getTestSuite(boolean addComplianceDiagnoseTest) {
TestCase.RUN_ONLY_ID = null;
all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_22), tests_22));
}
if ((possibleComplianceLevels & AbstractCompilerTest.F_23) != 0) {
ArrayList tests_23 = (ArrayList)testClasses.clone();
tests_23.addAll(TEST_CLASSES_1_5);
addJava16Tests(tests_23);
// tests_22.add(SuperAfterStatementsTest.class);
// Reset forgotten subsets tests
TestCase.TESTS_PREFIX = null;
TestCase.TESTS_NAMES = null;
TestCase.TESTS_NUMBERS= null;
TestCase.TESTS_RANGE = null;
TestCase.RUN_ONLY_ID = null;
all.addTest(AbstractCompilerTest.buildComplianceTestSuite(ClassFileConstants.getComplianceLevelForJavaVersion(ClassFileConstants.MAJOR_VERSION_23), tests_23));
}
return all;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class AbstractCompilerTest extends TestCase {
public static final int F_20 = 0x20000;
public static final int F_21 = 0x40000;
public static final int F_22 = 0x80000;
public static final int F_23 = 0x100000;

public static final boolean RUN_JAVAC = CompilerOptions.ENABLED.equals(System.getProperty("run.javac"));
public static final boolean PERFORMANCE_ASSERTS = !CompilerOptions.DISABLED.equals(System.getProperty("jdt.performance.asserts"));
Expand Down Expand Up @@ -103,6 +104,7 @@ public class AbstractCompilerTest extends TestCase {
new int[] {F_20, ClassFileConstants.MAJOR_VERSION_20},
new int[] {F_21, ClassFileConstants.MAJOR_VERSION_21},
new int[] {F_22, ClassFileConstants.MAJOR_VERSION_22},
new int[] {F_23, ClassFileConstants.MAJOR_VERSION_23}
};

/**
Expand Down

0 comments on commit b84c7a6

Please sign in to comment.