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 authored and mickaelistria committed Sep 24, 2024
1 parent 0cef78a commit 13618d9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,16 +250,18 @@ public static TestSuite getTestSuite(boolean addComplianceDiagnoseTest) {
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);
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));
}
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 @@ -96,7 +96,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},
new int[] {F_23, ClassFileConstants.MAJOR_VERSION_23}
};

/**
Expand Down

0 comments on commit 13618d9

Please sign in to comment.